From: Aleksander Ɓukasz Date: Mon, 29 Jul 2013 09:49:48 +0000 (+0200) Subject: integration wip: fixing document refresh in documentCanvas module X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/75e7ee4a984c04ac54d14f7ac56be71130c9a1d3?ds=inline;hp=7db05b4e147b27b77a9fde2638a72e3c2d61a7fa integration wip: fixing document refresh in documentCanvas module --- diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index 73917f7..5689a8b 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -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'); } };