mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
created concept of "detail loaded listeners" which allow scripts to execute some action after the note detail has been loaded
This commit is contained in:
@@ -43,7 +43,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null) {
|
||||
this.activateNewNote = async notePath => {
|
||||
await treeService.reload();
|
||||
|
||||
await treeService.activateNote(notePath, true);
|
||||
await treeService.activateNote(notePath, noteDetailService.focusOnTitle);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user