Skip to content

Build your personal knowledge base with Trilium Notes

feat(popup_editor): focus on editor automatically for easier editing

Elian Doran4fc2b0fa5efe
diff --git a/apps/client/src/widgets/dialogs/popup_editor.ts b/apps/client/src/widgets/dialogs/popup_editor.ts
index 30ffaee432..4e02613db1 100644
--- a/apps/client/src/widgets/dialogs/popup_editor.ts
+++ b/apps/client/src/widgets/dialogs/popup_editor.ts
@@ -121,6 +121,7 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
await this.handleEventInChildren("activeContextChanged", { noteContext: this.noteContext });
this.setVisibility(true);
+ await this.handleEventInChildren("focusOnDetail", { ntxId: this.noteContext.ntxId });
});
$dialog.on("hidden.bs.modal", () => {
const $typeWidgetEl = $dialog.find(".note-detail-printable");