mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 15:49:56 +01:00
refactor(ckeditor5): add explicit override
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user