projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d9f91f
)
Roo/htmleditor/FilterEmpty.js
author
leon
<leon@roojs.com>
Mon, 26 Feb 2024 09:18:15 +0000
(17:18 +0800)
committer
leon
<leon@roojs.com>
Mon, 26 Feb 2024 09:18:15 +0000
(17:18 +0800)
Roo/htmleditor/FilterEmpty.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/FilterEmpty.js
b/Roo/htmleditor/FilterEmpty.js
index
f987b42
..
3baf9e3
100644
(file)
--- a/
Roo/htmleditor/FilterEmpty.js
+++ b/
Roo/htmleditor/FilterEmpty.js
@@
-20,7
+20,7
@@
Roo.extend(Roo.htmleditor.FilterEmpty, Roo.htmleditor.FilterBlack,
replaceTag : function(node)
{
- if (node.
innerHTML.trim() != ''
) {
+ if (node.
childNodes.length != 0
) {
this.walk(node);
}
if(!['B', 'I', 'U', 'S'].includes(node.tagName)) {