From: Jan Szejko Date: Tue, 14 Mar 2017 12:30:30 +0000 (+0100) Subject: fix problem with delete X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/949f04475963f4f2ae93f7a2a84ed577420514c6?ds=inline;hp=bb856bb163a586641fe9f6edf7723d3d905f2dfb fix problem with delete (cherry picked from commit 3030a9e) --- 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; } }