mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
inherit also note type and mime from template note, closes #1475
This commit is contained in:
parent
e56979c482
commit
1982d054ef
@ -70,6 +70,10 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
|
|||||||
if (templateNoteContent) {
|
if (templateNoteContent) {
|
||||||
note.setContent(templateNoteContent);
|
note.setContent(templateNoteContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
note.type = templateNote.type;
|
||||||
|
note.mime = templateNote.mime;
|
||||||
|
note.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
noteService.duplicateSubtreeWithoutRoot(templateNote.noteId, note.noteId);
|
noteService.duplicateSubtreeWithoutRoot(templateNote.noteId, note.noteId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user