mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 22:41:36 +08: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