fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: canvas links fix
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
genericElement.js
diff --git
a/src/editor/modules/documentCanvas/canvas/genericElement.js
b/src/editor/modules/documentCanvas/canvas/genericElement.js
index
f115bd4
..
4bdc524
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/genericElement.js
+++ b/
src/editor/modules/documentCanvas/canvas/genericElement.js
@@
-104,12
+104,7
@@
$.extend(generic, {
}
if(event.type === 'nodeMoved') {
}
if(event.type === 'nodeMoved') {
- /* globals Node */
- if(event.meta.node.nodeType === Node.TEXT_NODE) {
- actionArg = utils.getElementForTextNode(event.meta.node);
- } else {
- actionArg = utils.getElementForNode(event.meta.node);
- }
+ actionArg = utils.getElementForNode(event.meta.node, event.meta.parent);
} else {
actionArg = event.meta.node;
}
} else {
actionArg = event.meta.node;
}