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

index ee45808..56797e2 100644 (file)
@@ -20,6 +20,9 @@ Roo.extend(Roo.htmleditor.FilterEmpty, Roo.htmleditor.FilterBlack,
  
     replaceTag : function(node)
     {
+        if(node.hasChildNodes()) {
+            node.walk();
+        }
         if (node.attributes && node.attributes.length > 0 || node.childNodes.length > 0) {
             return true;
         }