From c3427933dddabbeddee1697b07c7e8c79c649517 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 13 Dec 2013 16:31:14 +0100 Subject: [PATCH 1/1] editor: fix - send correct class parameter when wrapping current node --- src/editor/modules/documentCanvas/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.20.1