projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb5ac1
)
Roo/htmleditor/FilterEmpty.js
author
leon
<leon@roojs.com>
Tue, 27 Feb 2024 02:20:11 +0000
(10:20 +0800)
committer
leon
<leon@roojs.com>
Tue, 27 Feb 2024 02:20:11 +0000
(10:20 +0800)
Roo/htmleditor/FilterEmpty.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/FilterEmpty.js
b/Roo/htmleditor/FilterEmpty.js
index
721b40e
..
41f3816
100644
(file)
--- a/
Roo/htmleditor/FilterEmpty.js
+++ b/
Roo/htmleditor/FilterEmpty.js
@@
-26,7
+26,13
@@
Roo.extend(Roo.htmleditor.FilterEmpty, Roo.htmleditor.FilterBlack,
}
//
- if(['B', 'I', 'U', 'S'].indexOf(node.tagName) < 0) {
+ if(
+ ['B', 'I', 'U', 'S'].indexOf(node.tagName) < 0
+ ||
+ node.attributes && node.attributes.length > 0
+ ||
+ node.hasChildNodes()
+ ) {
return false; // dont walk
}
if (node.attributes && node.attributes.length > 0 || node.childNodes.length > 0) {