projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b89d9a3
)
Roo/htmleditor/FilterHashLink.js
author
leon
<leon@roojs.com>
Mon, 20 Nov 2023 05:11:11 +0000
(13:11 +0800)
committer
leon
<leon@roojs.com>
Mon, 20 Nov 2023 05:11:11 +0000
(13:11 +0800)
Roo/htmleditor/FilterHashLink.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/FilterHashLink.js
b/Roo/htmleditor/FilterHashLink.js
index
590f184
..
94a1ef7
100644
(file)
--- a/
Roo/htmleditor/FilterHashLink.js
+++ b/
Roo/htmleditor/FilterHashLink.js
@@
-25,10
+25,12
@@
var a = node.attributes[i];
if(a.name.toLowerCase() == 'href' && a.value.startsWith('#')) {
- Roo.log('REMOVE NODE KEEP CHILDREN');
- Roo.log(node);
- // this.removeNodeKeepChildren(node);
- Roo.log('?');
+ var ar = Array.from(node.childNodes);
+ for (var i = 0; i < ar.length; i++) {
+ node.parentNode.insertBefore(ar[i], node);
+ }
+
+ node.parentNode.removeChild(node);
}
}