chore(client): fix more type errors

This commit is contained in:
Elian Doran
2025-05-07 22:29:11 +03:00
parent 3e468d7960
commit 726797b13d
3 changed files with 9 additions and 4 deletions

View File

@@ -7,7 +7,10 @@ export { EditorWatchdog } from "ckeditor5";
* Short-hand for the CKEditor classes supported by Trilium for text editing.
* Specialized editors such as the {@link AttributeEditor} are not included.
*/
export type CKTextEditor = ClassicEditor | PopupEditor;
export type CKTextEditor = (ClassicEditor | PopupEditor) & {
getSelectedHtml(): string;
removeSelection(): Promise<void>;
};
/**
* The text editor that can be used for editing attributes and relations.