X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a77e53b783db30a8e6e7935ddabe158a67e4221f..5952990eee08ffd82ee5e8ecd3f840dacf222ef6:/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 --- 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 } }); + 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() {