fix keyboard navigation in the note tree, fixes #4036

This commit is contained in:
zadam 2023-06-18 23:45:48 +02:00
parent e22f77eae7
commit 691fccb769

View File

@ -185,14 +185,8 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
async doRefresh(note) {
const noteComplement = await froca.getNoteComplement(note.noteId);
await this.spacedUpdate.allowUpdateWithoutChange(() => {
// https://github.com/zadam/trilium/issues/3914
// 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 || "");
});
await this.spacedUpdate.allowUpdateWithoutChange(() =>
this.watchdog.editor.setData(noteComplement.content || ""));
}
getData() {