mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix cursor position when Jumping from note to included note
(cherry picked from commit 6a9aa5eedaf27d8b077d200cca659eef541b2143)
This commit is contained in:
parent
04caba9f5b
commit
8eb0a4e1cb
@ -187,6 +187,11 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
|||||||
const noteComplement = await froca.getNoteComplement(note.noteId);
|
const noteComplement = await froca.getNoteComplement(note.noteId);
|
||||||
|
|
||||||
await this.spacedUpdate.allowUpdateWithoutChange(() => {
|
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 || "");
|
this.watchdog.editor.setData(noteComplement.content || "");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user