Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix cursor position when Jumping from note to included note
baiyongjie8eb0a4e1cbce
diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.jsindex aa10152422..1bae06696d 100644--- a/src/public/app/widgets/type_widgets/editable_text.js+++ b/src/public/app/widgets/type_widgets/editable_text.js@@ -187,6 +187,11 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {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 || "");});}