fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Linting, minor test description fix
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
commands.js
diff --git
a/src/editor/modules/documentCanvas/commands.js
b/src/editor/modules/documentCanvas/commands.js
index
b38c720
..
19c052c
100644
(file)
--- a/
src/editor/modules/documentCanvas/commands.js
+++ b/
src/editor/modules/documentCanvas/commands.js
@@
-210,13
+210,13
@@
commands.register('take-away-node', function(canvas) {
canvas.setCurrentElement(element, {caretTo: position.offset});
} else {
if(elementIsFirstChild) {
canvas.setCurrentElement(element, {caretTo: position.offset});
} else {
if(elementIsFirstChild) {
- canvas.setCurrentElement(findCanvasElement(range.element1), {caretTo: 'end'});
+ canvas.setCurrentElement(
utils.
findCanvasElement(range.element1), {caretTo: 'end'});
} else {
} else {
- canvas.setCurrentElement(findCanvasElement(range.element2), {caretTo: 'end'});
+ canvas.setCurrentElement(
utils.
findCanvasElement(range.element2), {caretTo: 'end'});
}
}
} else {
}
}
} else {
- canvas.setCurrentElement(findCanvasElement(range.element1), {caretTo: 'start'});
+ canvas.setCurrentElement(
utils.
findCanvasElement(range.element1), {caretTo: 'start'});
}
});
}
});