fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing unnecessary element detach logic from Canvas DocumentNodeElement
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
keyboard.js
diff --git
a/src/editor/modules/documentCanvas/canvas/keyboard.js
b/src/editor/modules/documentCanvas/canvas/keyboard.js
index
418dc93
..
e48917c
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/keyboard.js
+++ b/
src/editor/modules/documentCanvas/canvas/keyboard.js
@@
-93,7
+93,7
@@
handlers.push({key: KEYS.ENTER,
// gotoOptions = {caretTo: 'start'};
// }
// gotoOptions = {caretTo: 'start'};
// }
- var result = position.element.data('wlxmlNode').
transform('rng.breakContent',
{offset: position.offset}),
+ var result = position.element.data('wlxmlNode').
breakContent(
{offset: position.offset}),
goto, gotoOptions;
if(result.emptyText) {
goto = result.createdEmpty;
goto, gotoOptions;
if(result.emptyText) {
goto = result.createdEmpty;