Roo/htmleditor/Filter.js
authorleon <leon@roojs.com>
Mon, 20 Nov 2023 06:53:06 +0000 (14:53 +0800)
committerleon <leon@roojs.com>
Mon, 20 Nov 2023 06:53:06 +0000 (14:53 +0800)
Roo/htmleditor/Filter.js

index 951b043..df3b279 100644 (file)
@@ -90,14 +90,10 @@ Roo.htmleditor.Filter.prototype = {
         Roo.log(els.length);
 
         for(var i = 0 ; i < els.length; i++) {
-            Roo.log(els.length);
-        }
-
-        Roo.each( Array.from(dom.getElementsByTagName(this.tag)), function(e) {
-            Roo.log(e);
             if(this.replaceTag) {
-                this.replaceTag(e);
+                this.replaceTag(els[i]);
             }
-        }, this);
+            Roo.log(els.length);
+        }
     }
 };
\ No newline at end of file