fix
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 9 Oct 2013 14:24:13 +0000 (16:24 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 9 Oct 2013 14:24:13 +0000 (16:24 +0200)
src/editor/modules/documentCanvas/canvas/keyboard.js

index 1830017..a6f52cf 100644 (file)
@@ -46,7 +46,7 @@ handlers.push({key: KEYS.ENTER,
 
         if(!cursor.isSelecting()) {
             if(event.ctrlKey) {
 
         if(!cursor.isSelecting()) {
             if(event.ctrlKey) {
-                var added = element.after({tag: 'block'});
+                var added = element.after({tag: element.getWlxmlTag() || 'div', klass: element.getWlxmlClass() || 'p'});
                 added.append({text:''});
                 canvas.setCurrentElement(added, {caretTo: 'start'});
 
                 added.append({text:''});
                 canvas.setCurrentElement(added, {caretTo: 'start'});