diff --git a/packages/ckeditor5/src/plugins/mention_customization.ts b/packages/ckeditor5/src/plugins/mention_customization.ts index a6013c29f..6b844a5f6 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 => {