editor: fix minor bug
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 17 Jan 2014 15:17:56 +0000 (16:17 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 17 Jan 2014 15:17:56 +0000 (16:17 +0100)
src/editor/modules/documentCanvas/commands.js

index b4f034a..7987a79 100644 (file)
@@ -160,7 +160,7 @@ commands.register('newNodeRequested', function(canvas, params) {
                 canvas.wlxmlDocument.wrapNodes({
                     node1: siblingParents.node1,
                     node2: siblingParents.node2,
                 canvas.wlxmlDocument.wrapNodes({
                     node1: siblingParents.node1,
                     node2: siblingParents.node2,
-                    _with: {tagName: params.wlxmlTag, attrs: {klass: params.wlxmlClass}}
+                    _with: {tagName: params.wlxmlTag, attrs: {'class': params.wlxmlClass}}
                 });
             }
         }
                 });
             }
         }