Roo/htmleditor/FilterEmpty.js
authorleon <leon@roojs.com>
Tue, 27 Feb 2024 02:21:17 +0000 (10:21 +0800)
committerleon <leon@roojs.com>
Tue, 27 Feb 2024 02:21:17 +0000 (10:21 +0800)
Roo/htmleditor/FilterEmpty.js

index 809794d..fa10fde 100644 (file)
@@ -35,9 +35,7 @@ Roo.extend(Roo.htmleditor.FilterEmpty, Roo.htmleditor.FilterBlack,
         ) {
             return false; // dont walk
         }
-        if (node.attributes && node.attributes.length > 0 || node.childNodes.length > 0) {
-            return true;
-        }
+        
         Roo.htmleditor.FilterBlack.prototype.replaceTag.call(this, node);
         return false;