integration wip: fixing document refresh in documentCanvas module
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 29 Jul 2013 09:49:48 +0000 (11:49 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 30 Jul 2013 09:19:57 +0000 (11:19 +0200)
modules/documentCanvas/documentCanvas.js

index 73917f7..5689a8b 100644 (file)
@@ -48,7 +48,7 @@ return function(sandbox) {
             sandbox.publish('documentSet');
         },
         getDocument: function() {
-            return transformations.toXML.getXML(canvas.getContent());
+            return canvas.toXML();
         },
         modifyCurrentNodeElement: function(attr, value) {
             var currentNodeElement = canvas.getCurrentNodeElement();
@@ -70,6 +70,7 @@ return function(sandbox) {
         },
         command: function(command, params) {
             commands.run(command, params, canvas);
+            sandbox.publish('contentChanged');
         }
     };