mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
added #titleTemplate, closes #2852
This commit is contained in:
@@ -28,8 +28,6 @@ async function createNote(parentNotePath, options = {}) {
|
||||
[options.title, options.content] = parseSelectedHtml(window.cutToNote.getSelectedHtml());
|
||||
}
|
||||
|
||||
const newNoteName = options.title || "new note";
|
||||
|
||||
const parentNoteId = treeService.getNoteIdFromNotePath(parentNotePath);
|
||||
|
||||
if (options.type === 'mermaid' && !options.content) {
|
||||
@@ -41,7 +39,7 @@ async function createNote(parentNotePath, options = {}) {
|
||||
}
|
||||
|
||||
const {note, branch} = await server.post(`notes/${parentNoteId}/children?target=${options.target}&targetBranchId=${options.targetBranchId || ""}`, {
|
||||
title: newNoteName,
|
||||
title: options.title,
|
||||
content: options.content || "",
|
||||
isProtected: options.isProtected,
|
||||
type: options.type,
|
||||
|
Reference in New Issue
Block a user