Skip to content

Build your personal knowledge base with Trilium Notes

using change event instead of changesDone because the latter seems to trigger also on e.g. just selection

azivner2fdd4c37e58c
diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.js
index f4588892b3..e086715e80 100644
--- a/public/javascripts/note_editor.js
+++ b/public/javascripts/note_editor.js
@@ -156,7 +156,7 @@ const noteEditor = (function() {
.then(edit => {
editor = edit;
- editor.document.on('changesDone', noteChanged);
+ editor.document.on('change', noteChanged);
})
.catch(error => {
console.error(error);