From: Aleksander Ɓukasz Date: Tue, 17 Dec 2013 16:38:38 +0000 (+0100) Subject: editor fix: source editor should also react to contentSet event X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/8acf84ebc364a5a7ac6d253fc3875787f8e620b9 editor fix: source editor should also react to contentSet event This fixes source editor not reloading its content after revert. --- diff --git a/src/editor/modules/sourceEditor/sourceEditor.js b/src/editor/modules/sourceEditor/sourceEditor.js index 420abc1..1930939 100644 --- a/src/editor/modules/sourceEditor/sourceEditor.js +++ b/src/editor/modules/sourceEditor/sourceEditor.js @@ -49,6 +49,9 @@ return function(sandbox) { wlxmlDocument.on('change', function() { documentIsDirty = true; }); + wlxmlDocument.on('contentSet', function() { + documentIsDirty = true; + }); }, getDocument: function() { return editor.getValue();