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

This commit is contained in:
azivner 2017-12-09 21:56:48 -05:00
parent 7483f11d10
commit 2fdd4c37e5

View File

@ -156,7 +156,7 @@ const noteEditor = (function() {
.then(edit => { .then(edit => {
editor = edit; editor = edit;
editor.document.on('changesDone', noteChanged); editor.document.on('change', noteChanged);
}) })
.catch(error => { .catch(error => {
console.error(error); console.error(error);