fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: plugins/core support for Node.object.describesParent
[fnpeditor.git]
/
src
/
editor
/
plugins
/
core
/
core.js
diff --git
a/src/editor/plugins/core/core.js
b/src/editor/plugins/core/core.js
index
bbc27ac
..
c12405b
100644
(file)
--- a/
src/editor/plugins/core/core.js
+++ b/
src/editor/plugins/core/core.js
@@
-26,6
+26,14
@@
plugin.documentExtension.textNode.transformations = {
return true; // break
}
});
return true; // break
}
});
+ newNodes.second.contents()
+ .filter(function(child) {
+ return child.object.describesParent;
+ })
+ .forEach(function(child) {
+ //child.detach();
+ newNodes.first.append(child);
+ });
return _.extend(newNodes, {emptyText: emptyText});
},
getChangeRoot: function() {
return _.extend(newNodes, {emptyText: emptyText});
},
getChangeRoot: function() {