Merge branch 'master' into next53

This commit is contained in:
zadam
2022-06-05 22:25:14 +02:00
17 changed files with 76 additions and 24 deletions

View File

@@ -330,7 +330,8 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
// without await as this otherwise causes deadlock through component mutex
noteCreateService.createNote(appContext.tabManager.getActiveContextNotePath(), {
isProtected: note.isProtected,
saveSelection: true
saveSelection: true,
textEditor: await this.noteContext.getTextEditor()
});
}
@@ -344,4 +345,16 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
this.refresh();
}
}
async executeWithTypeWidgetEvent({resolve, ntxId}) {
if (!this.isNoteContext(ntxId)) {
return;
}
await this.initialized;
await this.getWidgetType();
resolve(this.getTypeWidget());
}
}