From eeefba6bcac6faaaed876e43fbf37f4405600b27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 9 Oct 2013 16:24:13 +0200 Subject: [PATCH] fix --- src/editor/modules/documentCanvas/canvas/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}); -- 2.20.1