Roo/htmleditor/FilterEmpty.js
authorleon <leon@roojs.com>
Mon, 26 Feb 2024 08:54:08 +0000 (16:54 +0800)
committerleon <leon@roojs.com>
Mon, 26 Feb 2024 08:54:08 +0000 (16:54 +0800)
Roo/htmleditor/FilterEmpty.js

index 4e66f65..8da55d2 100644 (file)
@@ -29,10 +29,10 @@ Roo.extend(Roo.htmleditor.FilterEmpty, Roo.htmleditor.FilterBlack,
         }
 
         if (node.innerHTML.trim() != '') {
-            return true;
+            return false;
         }
         if (node.attributes && node.attributes.length > 0) {
-            return true; // walk if there are any.
+            return false; // walk if there are any.
         }
         Roo.htmleditor.FilterBlack.prototype.replaceTag.call(this, node);
         return false;