From: Aleksander Ɓukasz Date: Fri, 13 Dec 2013 13:02:55 +0000 (+0100) Subject: editor: fix resolving cursor destination after breaking content at the edge of text... X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/e5b71883b5c32bd8ad797eeea9da2c7eaa5b741e editor: fix resolving cursor destination after breaking content at the edge of text node --- diff --git a/src/editor/modules/documentCanvas/canvas/keyboard.js b/src/editor/modules/documentCanvas/canvas/keyboard.js index d2a8e44..0b876f0 100644 --- a/src/editor/modules/documentCanvas/canvas/keyboard.js +++ b/src/editor/modules/documentCanvas/canvas/keyboard.js @@ -104,7 +104,7 @@ handlers.push({key: KEYS.ENTER, var result = position.element.data('wlxmlNode').breakContent({offset: position.offset}), goto, gotoOptions; if(result.emptyText) { - goto = result.createdEmpty; + goto = result.emptyText; gotoOptions = {}; } else { goto = result.second;