Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(ckeditor5): fix references: Selectable -> ModelSelectable
Elian Doran4e97490cc620
diff --git a/packages/ckeditor5/src/plugins/mention_customization.ts b/packages/ckeditor5/src/plugins/mention_customization.tsindex a6013c29fa..6b844a5f61 100644--- a/packages/ckeditor5/src/plugins/mention_customization.ts+++ b/packages/ckeditor5/src/plugins/mention_customization.ts@@ -1,4 +1,4 @@-import { Command, Mention, Plugin, ModelRange, type Selectable } from "ckeditor5";+import { Command, Mention, Plugin, ModelRange, type ModelSelectable } from "ckeditor5";/*** Overrides the actions taken by the Mentions plugin (triggered by `@` in the text editor, or `~` & `#` in the attribute editor):@@ -48,7 +48,7 @@ class CustomMentionCommand extends Command {const {document} = model;const {selection} = document;const mention = options.mention as unknown as MentionAttribute;- const range = (options.range || selection.getFirstRange()) as Selectable;+ const range = (options.range || selection.getFirstRange()) as ModelSelectable;if (mention.id.startsWith('#') || mention.id.startsWith('~')) {model.change(writer => {@@ -69,7 +69,7 @@ class CustomMentionCommand extends Command {}}- insertReference(range: Selectable, notePath: string) {+ insertReference(range: ModelSelectable, notePath: string) {const {model} = this.editor;model.change(writer => {