added ckeditor with Find & Replace, for now without keyboard shortcut (ckeditor/ckeditor5#10645)

This commit is contained in:
zadam
2021-10-04 21:53:57 +02:00
parent 18ffcf7880
commit e2c4f32b5e
6 changed files with 25 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
import BasicWidget from "./basic_widget.js";
import appContext from "../services/app_context.js";
export default class NoteContextAwareWidget extends BasicWidget {
isNoteContext(ntxId) {
@@ -10,6 +11,10 @@ export default class NoteContextAwareWidget extends BasicWidget {
}
}
isActiveNoteContext() {
return appContext.tabManager.getActiveContext() === this.noteContext;
}
isNote(noteId) {
return this.noteId === noteId;
}