X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=c512303ff9c353b19cc1f02c9ce6f66cab92ab6d;hb=0a668022ba6654618a8f9b0774b233ff5c03ea96;hp=85f8dfca24cbedab3a0aee4d1fd0973388dad62e;hpb=4c0444db99180bc60122029162bf61d3c2081c4a;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 85f8dfca24..c512303ff9 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -45899,25 +45899,33 @@ Roo.htmleditor.FilterKeepChildren = function(cfg) if (this.tag === false) { return; // dont walk.. (you can use this to use this just to do a child removal on a single tag ) } + // hacky? + if ((typeof(this.tag) == 'object' && this.tag.indexOf(":") > -1)) { + this.cleanNamespace = true; + } + this.walk(cfg.node); } Roo.extend(Roo.htmleditor.FilterKeepChildren, Roo.htmleditor.FilterBlack, { - + cleanNamespace : false, // should really be an option, rather than using ':' inside of this tag. replaceTag : function(node) { // walk children... - //Roo.log(node); + Roo.log(node.tagName); var ar = Array.from(node.childNodes); //remove first.. + for (var i = 0; i < ar.length; i++) { if (ar[i].nodeType == 1) { if ( (typeof(this.tag) == 'object' && this.tag.indexOf(ar[i].tagName) > -1) || // array and it matches (typeof(this.tag) == 'string' && this.tag == ar[i].tagName) + || + this.cleanNameSpace && ar[i].tagName.match(/:/) ) { this.replaceTag(ar[i]); // child is blacklisted as well... continue;