From 2fdd4c37e58cdc96cba3a4dd81241a820097e3ce Mon Sep 17 00:00:00 2001 From: azivner Date: Sat, 9 Dec 2017 21:56:48 -0500 Subject: [PATCH] using change event instead of changesDone because the latter seems to trigger also on e.g. just selection --- public/javascripts/note_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.js index f4588892b..e086715e8 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);