From e5b71883b5c32bd8ad797eeea9da2c7eaa5b741e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 13 Dec 2013 14:02:55 +0100 Subject: [PATCH] editor: fix resolving cursor destination after breaking content at the edge of text node --- 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 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; -- 2.20.1