From 691fccb769611a9e2e051cd2cc904f9ba7ad2050 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 18 Jun 2023 23:45:48 +0200 Subject: [PATCH] fix keyboard navigation in the note tree, fixes #4036 --- src/public/app/widgets/type_widgets/editable_text.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.js index 10004e736..06178c3d7 100644 --- a/src/public/app/widgets/type_widgets/editable_text.js +++ b/src/public/app/widgets/type_widgets/editable_text.js @@ -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() {