X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui.js;h=e50f9c699082233ba2b4d61a822a2cc328b7d822;hb=79dceb4db132cf65b29faaf2cc5d6bc7b8267d4e;hp=407b816167aa4072b5bbecd42c508605098310ba;hpb=10f9d134e94f565e2adb3f66b95d9ba764cbea87;p=roojs1 diff --git a/roojs-ui.js b/roojs-ui.js index 407b816167..e50f9c6990 100644 --- a/roojs-ui.js +++ b/roojs-ui.js @@ -950,7 +950,7 @@ Roo.htmleditor={}; Roo.htmleditor.Filter=function(A){Roo.apply(this.cfg);};Roo.htmleditor.Filter.prototype={node:false,tag:false,replaceComment:false,replaceTag:false,walk:function(A){Roo.each(Array.from(A.childNodes),function(e){switch(true){case e.nodeType==8&&this.replaceComment!==false:this.replaceComment(e); return;case e.nodeType!=1:return;case this.tag===true:case e.tagName.indexOf(":")>-1&&typeof(this.tag)=='object'&&this.tag.indexOf(":")>-1:case e.tagName.indexOf(":")>-1&&typeof(this.tag)=='string'&&this.tag==":":case typeof(this.tag)=='object'&&this.tag.indexOf(e.tagName)>-1:case typeof(this.tag)=='string'&&this.tag==e.tagName:if(this.replaceTag&&false===this.replaceTag(e)){return; }if(e.hasChildNodes()){this.walk(e);}return;default:if(e.hasChildNodes()){this.walk(e);}}},this);},removeNodeKeepChildren:function(A){ar=Array.from(A.childNodes);for(var i=0;i