wlxml: fix argument passing to transformations registered as wlxml class extensions
[fnpeditor.git] / src / editor / modules / data / data.js
index 84f0af8..7488390 100644 (file)
@@ -41,11 +41,14 @@ return function(sandbox) {
         });
         
         var modificationFlag = true;
         });
         
         var modificationFlag = true;
-        wlxmlDocument.on('change', function() {
+        var handleChange = function() {
             documentDirty = true;
             draftDirty = true;
             modificationFlag = true;
             documentDirty = true;
             draftDirty = true;
             modificationFlag = true;
-        });
+        };
+        wlxmlDocument.on('change', handleChange);
+        wlxmlDocument.on('contentSet', handleChange);
+
         if(window.localStorage) {
             window.setInterval(function() {
                 if(modificationFlag) {
         if(window.localStorage) {
             window.setInterval(function() {
                 if(modificationFlag) {