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/3030a9e528fb71f1195b49f5b1db9e715647428b?hp=7263e5132059abc0e93deac2175db475f90e7617 fix problem with delete --- 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; } }