Roo/htmleditor/FilterWord.js
authorAlan <alan@roojs.com>
Tue, 5 Jul 2022 03:55:23 +0000 (11:55 +0800)
committerAlan <alan@roojs.com>
Tue, 5 Jul 2022 03:55:23 +0000 (11:55 +0800)
Roo/htmleditor/FilterWord.js

index b56d022..520e658 100644 (file)
@@ -145,7 +145,7 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
     replaceAname : function (doc)
     {
         // replace all the a/name without..
-        var aa = Array.from(doc.getElementsTagName('a'));
+        var aa = Array.from(doc.getElementsByTagName('a'));
         for (var i = 0; i  < aa.length; i++) {
             var a = aa[i];
             if (a.hasAttribute("name")) {