smartxml: fix ranges returned by unwrapContents
[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();