mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(insert time): restore editor focus after inserting time
This commit is contained in:
parent
cef362c123
commit
8e56faf9f0
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user