fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pre d: setattr, settext, split as ContextTransformations; detach in old format; pre...
[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
16f2f68
..
dfe3f66
100644
(file)
--- 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
}
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;
newEmpty,
goto,
gotoOptions;
@@
-85,7
+86,7
@@
handlers.push({key: KEYS.ENTER,
newEmpty = nodes.second;
if(newEmpty) {
newEmpty = nodes.second;
if(newEmpty) {
- goto = newEmpty.append({text: ''});
+
//
goto = newEmpty.append({text: ''});
gotoOptions = {};
} else {
goto = nodes.second;
gotoOptions = {};
} else {
goto = nodes.second;