mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
refactor(client): fix type errors related to CKEditor
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import "ckeditor5/ckeditor5.css";
|
||||
import { COMMON_PLUGINS, CORE_PLUGINS, POPUP_EDITOR_PLUGINS } from "./plugins";
|
||||
import { BalloonEditor, DecoupledEditor } from "ckeditor5";
|
||||
import { BalloonEditor, DecoupledEditor, FindAndReplaceEditing, FindCommand } from "ckeditor5";
|
||||
export { EditorWatchdog } from "ckeditor5";
|
||||
export type { EditorConfig, MentionFeed, MentionFeedObjectItem, Node, Position, Element, WatchdogConfig } from "ckeditor5";
|
||||
|
||||
/**
|
||||
* Short-hand for the CKEditor classes supported by Trilium for text editing.
|
||||
@@ -12,6 +13,9 @@ export type CKTextEditor = (ClassicEditor | PopupEditor) & {
|
||||
removeSelection(): Promise<void>;
|
||||
};
|
||||
|
||||
export type FindAndReplaceState = FindAndReplaceEditing["state"];
|
||||
export type FindCommandResult = ReturnType<FindCommand["execute"]>;
|
||||
|
||||
/**
|
||||
* The text editor that can be used for editing attributes and relations.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user