Roo/htmleditor/Filter.js
authorleon <leon@roojs.com>
Mon, 20 Nov 2023 05:37:28 +0000 (13:37 +0800)
committerleon <leon@roojs.com>
Mon, 20 Nov 2023 05:37:28 +0000 (13:37 +0800)
Roo/htmleditor/Filter.js

index 73f7a3f..9180ff4 100644 (file)
@@ -85,12 +85,10 @@ Roo.htmleditor.Filter.prototype = {
             return;
         }
 
-        Roo.each( Array.from(dom.getElementsByTagName(this.tag)), function( e ) {
-        }, this);
-        for(var i = 0; i < elements.length; i++) {
+        Roo.each( Array.from(dom.getElementsByTagName(this.tag)), function(e) {
             if(this.replaceTag) {
-                this.replaceTag(elements[i]);
+                this.replaceTag(e);
             }
-        }
+        }, this);
     }
 };
\ No newline at end of file