mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix keyboard navigation in the note tree, fixes #4036
This commit is contained in:
parent
e22f77eae7
commit
691fccb769
@ -185,14 +185,8 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
|||||||
async doRefresh(note) {
|
async doRefresh(note) {
|
||||||
const noteComplement = await froca.getNoteComplement(note.noteId);
|
const noteComplement = await froca.getNoteComplement(note.noteId);
|
||||||
|
|
||||||
await this.spacedUpdate.allowUpdateWithoutChange(() => {
|
await this.spacedUpdate.allowUpdateWithoutChange(() =>
|
||||||
// https://github.com/zadam/trilium/issues/3914
|
this.watchdog.editor.setData(noteComplement.content || ""));
|
||||||
// todo: quite hacky, but it works. remove it if ckeditor has fixed it.
|
|
||||||
this.$editor.trigger('focus');
|
|
||||||
this.$editor.trigger('blur')
|
|
||||||
|
|
||||||
this.watchdog.editor.setData(noteComplement.content || "");
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getData() {
|
getData() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user