projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
655e536
)
Roo/htmleditor/FilterEmpty.js
author
leon
<leon@roojs.com>
Mon, 26 Feb 2024 09:23:51 +0000
(17:23 +0800)
committer
leon
<leon@roojs.com>
Mon, 26 Feb 2024 09:23:51 +0000
(17:23 +0800)
Roo/htmleditor/FilterEmpty.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/FilterEmpty.js
b/Roo/htmleditor/FilterEmpty.js
index
31a6d1e
..
2111ee6
100644
(file)
--- a/
Roo/htmleditor/FilterEmpty.js
+++ b/
Roo/htmleditor/FilterEmpty.js
@@
-15,14
+15,11
@@
Roo.htmleditor.FilterEmpty = function(cfg)
Roo.extend(Roo.htmleditor.FilterEmpty, Roo.htmleditor.FilterBlack,
{
- tag :
true
,
+ tag :
['B', 'I', 'U', 'S']
,
replaceTag : function(node)
{
- if(!['B', 'I', 'U', 'S'].includes(node.tagName)) {
- return false;
- }
if (node.attributes && node.attributes.length > 0 || node.childNodes.length > 0) {
return false; // walk if there are any.
}