fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7263e51
)
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, 14 Mar 2017 14:03:23 +0000
(15:03 +0100)
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;
}
}