mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
addTextToEditor appends text to the end instead of the beginning
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user