From 75e7ee4a984c04ac54d14f7ac56be71130c9a1d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 29 Jul 2013 11:49:48 +0200 Subject: [PATCH] integration wip: fixing document refresh in documentCanvas module --- modules/documentCanvas/documentCanvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } }; -- 2.20.1