X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/2c0f5a6242a51bab12bd383b0097cba6027020dd..1cad60261451f283d49cff80d02b819ccd6902dd:/src/editor/modules/documentCanvas/documentCanvas.js?ds=sidebyside diff --git a/src/editor/modules/documentCanvas/documentCanvas.js b/src/editor/modules/documentCanvas/documentCanvas.js index 6331922..fff7996 100644 --- a/src/editor/modules/documentCanvas/documentCanvas.js +++ b/src/editor/modules/documentCanvas/documentCanvas.js @@ -42,9 +42,6 @@ return function(sandbox) { canvas.loadWlxmlDocument(wlxmlDocument); canvasWrapper.find('#rng-module-documentCanvas-content').empty().append(canvas.view()); }, - getDocument: function() { - return canvas.toXML(); - }, modifyCurrentNodeElement: function(attr, value) { var currentNodeElement = canvas.getCurrentNodeElement(); if(attr === 'class' || attr === 'tag') { @@ -64,7 +61,7 @@ return function(sandbox) { canvas.setCurrentElement(node); }, command: function(command, params) { - commands.run(command, params, canvas); + commands.run(command, params, canvas, sandbox.getConfig().user); sandbox.publish('contentChanged'); } };