refactor(ckeditor5): add explicit override

This commit is contained in:
Elian Doran
2025-05-29 13:22:38 +03:00
parent 74b7420942
commit 3eddb55aa2
5 changed files with 9 additions and 9 deletions

View File

@@ -135,14 +135,14 @@ class IncludeNoteEditing extends Plugin {
}
class InsertIncludeNoteCommand extends Command {
execute() {
override execute() {
const editorEl = this.editor.editing.view.getDomRoot();
const component = glob.getComponentByEl(editorEl);
component.triggerCommand('addIncludeNoteToText');
}
refresh() {
override refresh() {
const model = this.editor.model;
const selection = model.document.selection;
const firstPosition = selection.getFirstPosition();