X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0c978bca67983e93096a8e744b53e50861a9333d..6757e2f4fe80bfdc197d4963c464bf2b3a47f66b:/src/editor/modules/documentCanvas/canvas/keyboard.js?ds=sidebyside diff --git a/src/editor/modules/documentCanvas/canvas/keyboard.js b/src/editor/modules/documentCanvas/canvas/keyboard.js index 16f2f68..dfe3f66 100644 --- a/src/editor/modules/documentCanvas/canvas/keyboard.js +++ b/src/editor/modules/documentCanvas/canvas/keyboard.js @@ -74,7 +74,8 @@ handlers.push({key: KEYS.ENTER, return false; // top level element is unsplittable } - var nodes = position.element.data('wlxmlNode').split({offset: position.offset}), + //var nodes = position.element.data('wlxmlNode').split({offset: position.offset}), + var nodes = position.element.data('wlxmlNode').transform('split', {offset: position.offset}), newEmpty, goto, gotoOptions; @@ -85,7 +86,7 @@ handlers.push({key: KEYS.ENTER, newEmpty = nodes.second; if(newEmpty) { - goto = newEmpty.append({text: ''}); + //goto = newEmpty.append({text: ''}); gotoOptions = {}; } else { goto = nodes.second;