editor: removing lists via lists buttons
[fnpeditor.git] / src / editor / modules / documentCanvas / documentCanvas.js
index 6331922..0a31114 100644 (file)
@@ -2,10 +2,9 @@
 
 define([
 'libs/jquery',
-'libs/underscore',
 './canvas/canvas',
 './commands',
-'libs/text!./template.html'], function($, _, canvas3, commands, template) {
+'libs/text!./template.html'], function($, canvas3, commands, template) {
 
 'use strict';
 
@@ -42,9 +41,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,8 +60,7 @@ return function(sandbox) {
             canvas.setCurrentElement(node);
         },
         command: function(command, params) {
-            commands.run(command, params, canvas);
-            sandbox.publish('contentChanged');
+            commands.run(command, params, canvas, sandbox.getConfig().user);
         }
     };