mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08: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
	 zadam
						zadam