From: Aleksander Ɓukasz Date: Fri, 13 Dec 2013 15:31:14 +0000 (+0100) Subject: editor: fix - send correct class parameter when wrapping current node X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/c3427933dddabbeddee1697b07c7e8c79c649517 editor: fix - send correct class parameter when wrapping current node --- diff --git a/src/editor/modules/documentCanvas/commands.js b/src/editor/modules/documentCanvas/commands.js index ce49c78..098f730 100644 --- a/src/editor/modules/documentCanvas/commands.js +++ b/src/editor/modules/documentCanvas/commands.js @@ -167,7 +167,7 @@ commands.register('newNodeRequested', function(canvas, params) { } else if(canvas.getCurrentNodeElement()) { wlxmlNode = canvas.getCurrentNodeElement().data('wlxmlNode'); // wrapper = node.wrapWith({tagName: params.wlxmlTag, attrs: {klass: params.wlxmlClass}}); - wrapper = wlxmlNode.wrapWith({tagName: params.wlxmlTag, attrs: {klass: params.wlxmlClass}}); + wrapper = wlxmlNode.wrapWith({tagName: params.wlxmlTag, attrs: {'class': params.wlxmlClass}}); canvas.setCurrentElement(utils.findCanvasElement(wrapper)); }