X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/8411d228c0928c0a2d6c280a2f39adacc972ee13..246796cf3b707c4c340edc7a1d51946fff8a278e:/src/smartxml/core.js?ds=inline 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; } }