Fix in transformations
[fnpeditor.git] / modules / documentCanvas / documentCanvas.js
index a4dcf37..4ca0a4d 100644 (file)
@@ -25,7 +25,7 @@ return function(sandbox) {
             sandbox.publish('documentSet');\r
         },\r
         getDocument: function() {\r
             sandbox.publish('documentSet');\r
         },\r
         getDocument: function() {\r
-            return canvas.toXML();\r
+            return transformations.toXML.getXML(canvas.getContent())\r
         },\r
         modifyCurrentNode: function(attr, value) {\r
             if(manager.currentNode) {\r
         },\r
         modifyCurrentNode: function(attr, value) {\r
             if(manager.currentNode) {\r