fix: insert template note when selecting editor
This commit is contained in:
@@ -403,6 +403,9 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
|
|||||||
|
|
||||||
async editorMenuOnSelect(component?: SNComponent) {
|
async editorMenuOnSelect(component?: SNComponent) {
|
||||||
this.setMenuState('showEditorMenu', false);
|
this.setMenuState('showEditorMenu', false);
|
||||||
|
if (this.appState.getActiveEditor()?.isTemplateNote) {
|
||||||
|
await this.appState.getActiveEditor().insertTemplatedNote();
|
||||||
|
}
|
||||||
if (!component) {
|
if (!component) {
|
||||||
if (!this.note.prefersPlainEditor) {
|
if (!this.note.prefersPlainEditor) {
|
||||||
await this.application.changeItem(this.note.uuid, (mutator) => {
|
await this.application.changeItem(this.note.uuid, (mutator) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user