Skip to content

Build your personal knowledge base with Trilium Notes

added createAttribute method to script API

azivnerdfd992731061
diff --git a/src/services/script_context.js b/src/services/script_context.js
index a3a41cbcb4..a4da9b55c1 100644
--- a/src/services/script_context.js
+++ b/src/services/script_context.js
@@ -54,6 +54,8 @@ function ScriptContext(noteId, dataKey) {
return noteId;
};
+ this.createAttribute = attributes.createAttribute;
+
this.updateEntity = this.repository.updateEntity;
this.log = function(message) {