mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
feat(popup_editor): focus on editor automatically for easier editing
This commit is contained in:
@@ -121,6 +121,7 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
|
|||||||
|
|
||||||
await this.handleEventInChildren("activeContextChanged", { noteContext: this.noteContext });
|
await this.handleEventInChildren("activeContextChanged", { noteContext: this.noteContext });
|
||||||
this.setVisibility(true);
|
this.setVisibility(true);
|
||||||
|
await this.handleEventInChildren("focusOnDetail", { ntxId: this.noteContext.ntxId });
|
||||||
});
|
});
|
||||||
$dialog.on("hidden.bs.modal", () => {
|
$dialog.on("hidden.bs.modal", () => {
|
||||||
const $typeWidgetEl = $dialog.find(".note-detail-printable");
|
const $typeWidgetEl = $dialog.find(".note-detail-printable");
|
||||||
|
|||||||
Reference in New Issue
Block a user