mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	inherit also note type and mime from template note, closes #1475
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user