diff --git a/src/public/javascripts/services/note_detail_text.js b/src/public/javascripts/services/note_detail_text.js index 345cb3951..aff30b5fe 100644 --- a/src/public/javascripts/services/note_detail_text.js +++ b/src/public/javascripts/services/note_detail_text.js @@ -11,13 +11,7 @@ async function show() { textEditor = await BalloonEditor.create($noteDetailText[0], {}); - textEditor.model.document.on('change', () => { - // change is triggered on just marker/selection changes which is not interesting for us - if (textEditor.model.document.differ.getChanges().length > 0) { - noteDetailService.noteChanged(); - } - } - ); + textEditor.model.document.on('change:data', noteDetailService.noteChanged); } textEditor.setData(noteDetailService.getCurrentNote().content);