fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb856bb
)
fix problem with delete
author
Jan Szejko
<janek37@gmail.com>
Tue, 14 Mar 2017 12:30:30 +0000
(13:30 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 27 Mar 2018 14:35:29 +0000
(16:35 +0200)
(cherry picked from commit
3030a9e
)
src/smartxml/core.js
patch
|
blob
|
history
diff --git
a/src/smartxml/core.js
b/src/smartxml/core.js
index
7326507
..
f8b128d
100644
(file)
--- 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;
}
}