Roo/htmleditor/FilterEmpty.js
authorleon <leon@roojs.com>
Mon, 26 Feb 2024 09:18:15 +0000 (17:18 +0800)
committerleon <leon@roojs.com>
Mon, 26 Feb 2024 09:18:15 +0000 (17:18 +0800)
Roo/htmleditor/FilterEmpty.js

index f987b42..3baf9e3 100644 (file)
@@ -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)) {