X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f7c97ef38dc00ec9b5358ae0bf959a5e6f99271c..bb42027c8fd9ed17234381d3c366c387a20592f0:/modules/documentCanvas/documentCanvas.js diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index a4dcf37..37e8377 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -25,7 +25,7 @@ return function(sandbox) { sandbox.publish('documentSet'); }, getDocument: function() { - return canvas.toXML(); + return transformations.toXML.getXML(canvas.getContent()); }, modifyCurrentNode: function(attr, value) { if(manager.currentNode) { @@ -52,7 +52,7 @@ return function(sandbox) { command: function(command, meta) { manager.command(command, meta); } - } + }; };