fix #7873 - links to footnotes removed on paste
[roojs1] / Roo / htmleditor / Filter.js
index 6d5cf8f..4603568 100644 (file)
@@ -77,5 +77,20 @@ Roo.htmleditor.Filter.prototype = {
            
         }
         node.parentNode.removeChild(node);
+    },
+
+    searchTag : function(dom)
+    {
+        if(this.tag === false) {
+            return;
+        }
+
+        var els = dom.getElementsByTagName(this.tag);
+
+        Roo.each(Array.from(els), function(e){
+            if(this.replaceTag) {
+                this.replaceTag(e);
+            }
+        }, this);
     }
 };
\ No newline at end of file