editor: fixing invalid new node construction in ctrl+enter handler
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 18 Dec 2013 11:35:18 +0000 (12:35 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 18 Dec 2013 11:35:18 +0000 (12:35 +0100)
src/editor/modules/documentCanvas/canvas/keyboard.js

index 603249e..cd12a02 100644 (file)
@@ -52,7 +52,7 @@ handlers.push({key: KEYS.ENTER,
             if(currentElement) {
                 canvas.wlxmlDocument.startTransaction();
                 added = currentElement.data('wlxmlNode').after({
-                    tag: currentElement.getWlxmlTag() || 'div',
+                    tagName: currentElement.getWlxmlTag() || 'div',
                     attrs: {'class': currentElement.getWlxmlClass() || 'p'}
                 });
                 added.append({text:''});