mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 06:54:44 +08:00
inherit also note type and mime from template note, closes #1475
This commit is contained in:
parent
e56979c482
commit
1982d054ef
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
|
|||
if (templateNoteContent) {
|
||||
note.setContent(templateNoteContent);
|
||||
}
|
||||
|
||||
note.type = templateNote.type;
|
||||
note.mime = templateNote.mime;
|
||||
note.save();
|
||||
}
|
||||
|
||||
noteService.duplicateSubtreeWithoutRoot(templateNote.noteId, note.noteId);
|
||||
|
|
Loading…
Reference in a new issue