editor: fix - block removing root node via insert/delete
[fnpeditor.git] / src / editor / modules / sourceEditor / sourceEditor.js
index 420abc1..1930939 100644 (file)
@@ -49,6 +49,9 @@ return function(sandbox) {
             wlxmlDocument.on('change', function() {
                 documentIsDirty = true;
             });
+            wlxmlDocument.on('contentSet', function() {
+                documentIsDirty = true;
+            });
         },
         getDocument: function() {
             return editor.getValue();