mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 11:39:37 +08:00
fix cursor position when Jumping from note to included note
This commit is contained in:
parent
8725f7cfb2
commit
6a9aa5eeda
1 changed files with 5 additions and 0 deletions
|
@ -186,6 +186,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 || "");
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue