fix: associate new note with default editor
This commit is contained in:
@@ -425,6 +425,7 @@ export class EditorViewCtrl extends PureViewCtrl<unknown, EditorState> {
|
|||||||
/** Editors cannot interact with template notes so the note must be inserted */
|
/** Editors cannot interact with template notes so the note must be inserted */
|
||||||
if (newEditor && this.editor.isTemplateNote) {
|
if (newEditor && this.editor.isTemplateNote) {
|
||||||
await this.editor.insertTemplatedNote();
|
await this.editor.insertTemplatedNote();
|
||||||
|
this.associateComponentWithCurrentNote(newEditor);
|
||||||
}
|
}
|
||||||
const currentComponentViewer = this.state.editorComponentViewer;
|
const currentComponentViewer = this.state.editorComponentViewer;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user