2 * @class Roo.htmleditor.FilterHashLink
5 * Run a new Hash Link Filter
6 * @param {Object} config Configuration options
9 Roo.htmleditor.FilterHashLink = function(cfg)
11 // no need to apply config.
15 Roo.extend(Roo.htmleditor.FilterHashLink, Roo.htmleditor.Filter,
21 replaceTag : function(node)
23 for(var i = 0; i < node.attributes.length; i ++) {
24 var a = node.attributes[i];
26 if(a.name.toLowerCase() == 'href' && a.value.startsWith('#')) {
27 var ar = Array.from(node.childNodes);
28 for (var i = 0; i < ar.length; i++) {
29 node.parentNode.insertBefore(ar[i], node);
32 node.parentNode.removeChild(node);