mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
added ckeditor with Find & Replace, for now without keyboard shortcut (ckeditor/ckeditor5#10645)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user