mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +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;
|
await this.initialized;
|
||||||
|
|
||||||
this.textEditor.model.change(writer => {
|
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);
|
writer.insertText(text, insertPosition);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user