X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f47eee9a0cadc2f342da542cff4b95ba737a8558..55a7fd3acdadc4777e2680b9bf64f96c509c6dac:/src/smartxml/core.js?ds=sidebyside diff --git a/src/smartxml/core.js b/src/smartxml/core.js index 7326507..f8b128d 100644 --- a/src/smartxml/core.js +++ b/src/smartxml/core.js @@ -517,6 +517,9 @@ var documentTransformations = { nextNext = next ? next.next() : null; toDetach.detach({normalizeStrategy: (next && next.sameNode(params.to.node)) ? 'merge' : 'detach-right'}); if(next && !next.isInDocument()) { + if(next.sameNode(params.to.node)) { + return; + } next = nextNext; } }