Skip to content

Build your personal knowledge base with Trilium Notes

Merge branch 'master' into next53

zadam4211d0fedaaf
diff --cc src/public/app/services/note_create.js
index bb08fabd4c,b51665fd7c..4e6a0421a9
--- a/src/public/app/services/note_create.js
+++ b/src/public/app/services/note_create.js
@@@ -43,13 -43,12 +43,13 @@@ async function createNote(parentNotePat
content: options.content || "",
isProtected: options.isProtected,
type: options.type,
- mime: options.mime
+ mime: options.mime,
+ templateNoteId: options.templateNoteId
});
- if (options.saveSelection && utils.isCKEditorInitialized()) {
+ if (options.saveSelection) {
// we remove the selection only after it was saved to server to make sure we don't lose anything
- window.cutToNote.removeSelection();
+ options.textEditor.removeSelection();
}
await ws.waitForMaxKnownEntityChangeId();