Skip to content

Build your personal knowledge base with Trilium Notes

allow copying type, mime, content from template only for text and code note types, fixes #1689

zadamcde41b268e4e
diff --git a/src/services/handlers.js b/src/services/handlers.js
index 473e5598df..0135598511 100644
--- a/src/services/handlers.js
+++ b/src/services/handlers.js
@@ -53,7 +53,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
if (entity.type === 'relation' && entity.name === 'template') {
const note = repository.getNote(entity.noteId);
- if (!note.isStringNote()) {
+ if (!["text", "code"].includes(note.type)) {
return;
}