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

@@ -26,7 +26,7 @@ const TPL = `
border-bottom: 1px solid var(--main-border-color);
min-width: 24px;
flex-basis: 24px;
max-width: fit-content;
max-width: max-content;
flex-grow: 10;
}

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;
}