From: Aleksander Ɓukasz Date: Wed, 18 Dec 2013 11:35:18 +0000 (+0100) Subject: editor: fixing invalid new node construction in ctrl+enter handler X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/13e0905b3f1950510b0bb5621e74d888650cbff1?ds=sidebyside editor: fixing invalid new node construction in ctrl+enter handler --- diff --git a/src/editor/modules/documentCanvas/canvas/keyboard.js b/src/editor/modules/documentCanvas/canvas/keyboard.js index 603249e..cd12a02 100644 --- a/src/editor/modules/documentCanvas/canvas/keyboard.js +++ b/src/editor/modules/documentCanvas/canvas/keyboard.js @@ -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:''});