Skip to content

Build your personal knowledge base with Trilium Notes

chore(ckeditor5): missing type augmentations

Elian Doranf87e7fb57760
diff --git a/packages/ckeditor5/src/index.ts b/packages/ckeditor5/src/index.ts
index 58e72ca6df..117d14574e 100644
--- a/packages/ckeditor5/src/index.ts
+++ b/packages/ckeditor5/src/index.ts
@@ -5,6 +5,10 @@ import { BalloonEditor, DecoupledEditor, FindAndReplaceEditing, FindCommand } fr
export { EditorWatchdog } from "ckeditor5";
export type { EditorConfig, MentionFeed, MentionFeedObjectItem, Node, Position, Element, WatchdogConfig } from "ckeditor5";
+// Import with sideffects to ensure that type augmentations are present.
+import "@triliumnext/ckeditor5-math";
+import "@triliumnext/ckeditor5-mermaid";
+
/**
* Short-hand for the CKEditor classes supported by Trilium for text editing.
* Specialized editors such as the {@link AttributeEditor} are not included.