From: Aleksander Ɓukasz Date: Wed, 9 Oct 2013 14:24:13 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/eeefba6bcac6faaaed876e43fbf37f4405600b27 fix --- diff --git a/src/editor/modules/documentCanvas/canvas/keyboard.js b/src/editor/modules/documentCanvas/canvas/keyboard.js index 1830017..a6f52cf 100644 --- a/src/editor/modules/documentCanvas/canvas/keyboard.js +++ b/src/editor/modules/documentCanvas/canvas/keyboard.js @@ -46,7 +46,7 @@ handlers.push({key: KEYS.ENTER, 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'});