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

index 2111ee6..ee45808 100644 (file)
@@ -21,7 +21,7 @@ Roo.extend(Roo.htmleditor.FilterEmpty, Roo.htmleditor.FilterBlack,
     replaceTag : function(node)
     {
         if (node.attributes && node.attributes.length > 0 || node.childNodes.length > 0) {
-            return false; // walk if there are any.
+            return true;
         }
         Roo.htmleditor.FilterBlack.prototype.replaceTag.call(this, node);
         return false;