X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f87e25a2b4d41deadb65308b278496ad2ff995d3..b45e6d41b58ad08b98114d0ec974aa537b9ae65e:/src/editor/modules/documentCanvas/commands.js 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)); }