mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix(insert time): restore editor focus after inserting time
This commit is contained in:
		| @@ -22,6 +22,7 @@ export default class InsertDateTimePlugin extends Plugin { | |||||||
|                 const component = glob.getComponentByEl(editorEl); |                 const component = glob.getComponentByEl(editorEl); | ||||||
|  |  | ||||||
|                 component.triggerCommand('insertDateTimeToText'); |                 component.triggerCommand('insertDateTimeToText'); | ||||||
|  |                 editor.editing.view.focus(); | ||||||
|             } ); |             } ); | ||||||
|  |  | ||||||
|             return view; |             return view; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user