mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
addTextToEditor appends text to the end instead of the beginning
This commit is contained in:
parent
11578b1bc3
commit
dbd312c88d
@ -191,7 +191,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||
await this.initialized;
|
||||
|
||||
this.textEditor.model.change(writer => {
|
||||
const insertPosition = this.textEditor.model.document.selection.getFirstPosition();
|
||||
const insertPosition = this.textEditor.model.document.selection.getLastPosition();
|
||||
writer.insertText(text, insertPosition);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user