Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/master' into next60

zadam38781d33ac9b
diff --cc src/public/app/widgets/type_widgets/editable_text.js
index 90d3822f40,826a9eab3d..f6c2a662e5
--- a/src/public/app/widgets/type_widgets/editable_text.js
+++ b/src/public/app/widgets/type_widgets/editable_text.js
@@@ -183,10 -183,15 +183,15 @@@ export default class EditableTextTypeWi
}
async doRefresh(note) {
- const noteComplement = await froca.getNoteComplement(note.noteId);
+ const blob = await note.getBlob();
await this.spacedUpdate.allowUpdateWithoutChange(() => {
- // https://github.com/zadam/trilium/issues/3914
++ // 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 || "");
++ this.$editor.trigger('blur');
++
+ this.watchdog.editor.setData(blob.content || "");
});
}