}
-};
\ No newline at end of file
+});
\ No newline at end of file
Roo.htmleditor.FilterComment=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterComment,Roo.htmleditor.Filter,{replaceComment:function(n){n.parentNode.removeChild(n);}});
// Roo/htmleditor/FilterKeepChildren.js
Roo.htmleditor.FilterKeepChildren=function(A){Roo.apply(this,A);this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterKeepChildren,Roo.htmleditor.FilterBlack,{replaceTag:function(n){for(var i=0;i<node.childNodes.length;i++){node.removeChild(node.childNodes[i]);
-node.insertBefore(node.childNodes[i],node);this.walk(node.childNodes[i]);}n.parentNode.removeChild(n);return false;}}
+node.insertBefore(node.childNodes[i],node);this.walk(node.childNodes[i]);}n.parentNode.removeChild(n);return false;}});
// Roo/htmleditor/FilterParagraph.js
Roo.htmleditor.FilterParagraph=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterParagraph,Roo.htmleditor.Filter,{tag:'P',replaceTag:function(node){if(node.childNodes.length==1&&node.childNodes[0].nodeType==3&&node.childNodes[0].nodeType.textContent.trim().length<1){node.parentNode.replaceChild(node.documentOwner.createElement('BR'),node);
return false;}for(var i=0;i<node.childNodes.length;i++){node.removeChild(node.childNodes[i]);node.insertBefore(node.childNodes[i],node);}node.insertBefore(node.documentOwner.createElement('BR'),node);node.parentNode.removeChild(node);return false;}};
}if(A.hasAttribute("style")){var B=A.getAttribute("style").split(";");var C=[];Roo.each(B,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^\s*(width|min-width)\s*$/)){return;}C.push(s);});A.setAttribute("style",C.length?C.join(';'):'');
if(!C.length){A.removeAttribute('style');}}this.walk(A);}});
// Roo/htmleditor/FilterWord.js
-Roo.htmleditor.FilterWord=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterWord,Roo.htmleditor.Filter,{tag:true,replaceTag:function(node){if(node.nodeName=='SPAN'&&!node.hasAttributes()&&node.childNodes.length==1&&node.firstChild.nodeName=="#text"){var textNode=node.firstChild;
-node.removeChild(textNode);if(node.getAttribute('lang')!='zh-CN'){node.parentNode.insertBefore(node.ownerDocument.createTextNode(" "),node);}node.parentNode.insertBefore(textNode,node);if(node.getAttribute('lang')!='zh-CN'){node.parentNode.insertBefore(node.ownerDocument.createTextNode(" "),node);
-}node.parentNode.removeChild(node);return false;}if(node.tagName.toLowerCase().match(/^(style|script|applet|embed|noframes|noscript)$/)){node.parentNode.removeChild(node);return false;}if(node.tagName.toLowerCase().match(/^(meta|link|\\?xml:|st1:|o:|v:|font)/)){while(node.childNodes.length){var cn=node.childNodes[0];
-node.removeChild(cn);node.parentNode.insertBefore(cn,node);this.replaceTag(cn);}node.parentNode.removeChild(node);return false;}if(node.className.length){var cn=node.className.split(/\W+/);var cna=[];Roo.each(cn,function(cls){if(cls.match(/Mso[a-zA-Z]+/)){return;
-}cna.push(cls);});node.className=cna.length?cna.join(' '):'';if(!cna.length){node.removeAttribute("class");}}if(node.hasAttribute("lang")){node.removeAttribute("lang");}if(node.hasAttribute("style")){var styles=node.getAttribute("style").split(";");var nstyle=[];
-Roo.each(styles,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^(mso-|line|font|background|margin|padding|color)/)){return;}nstyle.push(s);});node.setAttribute("style",nstyle.length?nstyle.join(';'):'');if(!nstyle.length){node.removeAttribute('style');
-}}return true;}};
+Roo.htmleditor.FilterWord=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterWord,Roo.htmleditor.Filter,{tag:true,replaceTag:function(A){if(A.nodeName=='SPAN'&&!A.hasAttributes()&&A.childNodes.length==1&&A.firstChild.nodeName=="#text"){var B=A.firstChild;
+A.removeChild(B);if(A.getAttribute('lang')!='zh-CN'){A.parentNode.insertBefore(A.ownerDocument.createTextNode(" "),A);}A.parentNode.insertBefore(B,A);if(A.getAttribute('lang')!='zh-CN'){A.parentNode.insertBefore(A.ownerDocument.createTextNode(" "),A);}A.parentNode.removeChild(A);
+return false;}if(A.tagName.toLowerCase().match(/^(style|script|applet|embed|noframes|noscript)$/)){A.parentNode.removeChild(A);return false;}if(A.tagName.toLowerCase().match(/^(meta|link|\\?xml:|st1:|o:|v:|font)/)){while(A.childNodes.length){var cn=A.childNodes[0];
+A.removeChild(cn);A.parentNode.insertBefore(cn,A);this.replaceTag(cn);}A.parentNode.removeChild(A);return false;}if(A.className.length){var cn=A.className.split(/\W+/);var C=[];Roo.each(cn,function(F){if(F.match(/Mso[a-zA-Z]+/)){return;}C.push(F);});A.className=C.length?C.join(' '):'';
+if(!C.length){A.removeAttribute("class");}}if(A.hasAttribute("lang")){A.removeAttribute("lang");}if(A.hasAttribute("style")){var D=A.getAttribute("style").split(";");var E=[];Roo.each(D,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^(mso-|line|font|background|margin|padding|color)/)){return;
+}E.push(s);});A.setAttribute("style",E.length?E.join(';'):'');if(!E.length){A.removeAttribute('style');}}return true;}});
// Roo/HtmlEditorCore.js
Roo.HtmlEditorCore=function(A){Roo.HtmlEditorCore.superclass.constructor.call(this,A);this.addEvents({initialize:true,activate:true,beforesync:true,beforepush:true,sync:true,push:true,editorevent:true});this.applyBlacklists();};Roo.extend(Roo.HtmlEditorCore,Roo.Component,{owner:false,resizable:false,height:300,width:500,stylesheets:false,allowComments:false,frameId:false,validationEvent:false,deferHeight:true,initialized:false,activated:false,sourceEditMode:false,onFocus:Roo.emptyFn,iframePad:3,hideMode:'offsets',clearUp:true,black:false,white:false,bodyCls:'',getDocMarkup:function(){var st='';
if(this.stylesheets===false){Roo.get(document.head).select('style').each(function(B){st+=B.dom.outerHTML||new XMLSerializer().serializeToString(B.dom);});Roo.get(document.head).select('link').each(function(B){st+=B.dom.outerHTML||new XMLSerializer().serializeToString(B.dom);
}
-}/**
+});/**
* @class Roo.htmleditor.FilterParagraph
* paragraphs cause a nightmare for shared content - this filter is designed to be called ? at various points when editing
* like on 'push' to remove the <p> tags and replace them with line breaks.
}
-};//<script type="text/javascript">
+});//<script type="text/javascript">
/*
* Based Ext JS Library 1.1.1
Roo.htmleditor.FilterComment=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterComment,Roo.htmleditor.Filter,{replaceComment:function(n){n.parentNode.removeChild(n);}});
// Roo/htmleditor/FilterKeepChildren.js
Roo.htmleditor.FilterKeepChildren=function(A){Roo.apply(this,A);this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterKeepChildren,Roo.htmleditor.FilterBlack,{replaceTag:function(n){for(var i=0;i<node.childNodes.length;i++){node.removeChild(node.childNodes[i]);
-node.insertBefore(node.childNodes[i],node);this.walk(node.childNodes[i]);}n.parentNode.removeChild(n);return false;}}
+node.insertBefore(node.childNodes[i],node);this.walk(node.childNodes[i]);}n.parentNode.removeChild(n);return false;}});
// Roo/htmleditor/FilterParagraph.js
Roo.htmleditor.FilterParagraph=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterParagraph,Roo.htmleditor.Filter,{tag:'P',replaceTag:function(node){if(node.childNodes.length==1&&node.childNodes[0].nodeType==3&&node.childNodes[0].nodeType.textContent.trim().length<1){node.parentNode.replaceChild(node.documentOwner.createElement('BR'),node);
return false;}for(var i=0;i<node.childNodes.length;i++){node.removeChild(node.childNodes[i]);node.insertBefore(node.childNodes[i],node);}node.insertBefore(node.documentOwner.createElement('BR'),node);node.parentNode.removeChild(node);return false;}};
}if(A.hasAttribute("style")){var B=A.getAttribute("style").split(";");var C=[];Roo.each(B,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^\s*(width|min-width)\s*$/)){return;}C.push(s);});A.setAttribute("style",C.length?C.join(';'):'');
if(!C.length){A.removeAttribute('style');}}this.walk(A);}});
// Roo/htmleditor/FilterWord.js
-Roo.htmleditor.FilterWord=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterWord,Roo.htmleditor.Filter,{tag:true,replaceTag:function(node){if(node.nodeName=='SPAN'&&!node.hasAttributes()&&node.childNodes.length==1&&node.firstChild.nodeName=="#text"){var textNode=node.firstChild;
-node.removeChild(textNode);if(node.getAttribute('lang')!='zh-CN'){node.parentNode.insertBefore(node.ownerDocument.createTextNode(" "),node);}node.parentNode.insertBefore(textNode,node);if(node.getAttribute('lang')!='zh-CN'){node.parentNode.insertBefore(node.ownerDocument.createTextNode(" "),node);
-}node.parentNode.removeChild(node);return false;}if(node.tagName.toLowerCase().match(/^(style|script|applet|embed|noframes|noscript)$/)){node.parentNode.removeChild(node);return false;}if(node.tagName.toLowerCase().match(/^(meta|link|\\?xml:|st1:|o:|v:|font)/)){while(node.childNodes.length){var cn=node.childNodes[0];
-node.removeChild(cn);node.parentNode.insertBefore(cn,node);this.replaceTag(cn);}node.parentNode.removeChild(node);return false;}if(node.className.length){var cn=node.className.split(/\W+/);var cna=[];Roo.each(cn,function(cls){if(cls.match(/Mso[a-zA-Z]+/)){return;
-}cna.push(cls);});node.className=cna.length?cna.join(' '):'';if(!cna.length){node.removeAttribute("class");}}if(node.hasAttribute("lang")){node.removeAttribute("lang");}if(node.hasAttribute("style")){var styles=node.getAttribute("style").split(";");var nstyle=[];
-Roo.each(styles,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^(mso-|line|font|background|margin|padding|color)/)){return;}nstyle.push(s);});node.setAttribute("style",nstyle.length?nstyle.join(';'):'');if(!nstyle.length){node.removeAttribute('style');
-}}return true;}};
+Roo.htmleditor.FilterWord=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterWord,Roo.htmleditor.Filter,{tag:true,replaceTag:function(A){if(A.nodeName=='SPAN'&&!A.hasAttributes()&&A.childNodes.length==1&&A.firstChild.nodeName=="#text"){var B=A.firstChild;
+A.removeChild(B);if(A.getAttribute('lang')!='zh-CN'){A.parentNode.insertBefore(A.ownerDocument.createTextNode(" "),A);}A.parentNode.insertBefore(B,A);if(A.getAttribute('lang')!='zh-CN'){A.parentNode.insertBefore(A.ownerDocument.createTextNode(" "),A);}A.parentNode.removeChild(A);
+return false;}if(A.tagName.toLowerCase().match(/^(style|script|applet|embed|noframes|noscript)$/)){A.parentNode.removeChild(A);return false;}if(A.tagName.toLowerCase().match(/^(meta|link|\\?xml:|st1:|o:|v:|font)/)){while(A.childNodes.length){var cn=A.childNodes[0];
+A.removeChild(cn);A.parentNode.insertBefore(cn,A);this.replaceTag(cn);}A.parentNode.removeChild(A);return false;}if(A.className.length){var cn=A.className.split(/\W+/);var C=[];Roo.each(cn,function(F){if(F.match(/Mso[a-zA-Z]+/)){return;}C.push(F);});A.className=C.length?C.join(' '):'';
+if(!C.length){A.removeAttribute("class");}}if(A.hasAttribute("lang")){A.removeAttribute("lang");}if(A.hasAttribute("style")){var D=A.getAttribute("style").split(";");var E=[];Roo.each(D,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^(mso-|line|font|background|margin|padding|color)/)){return;
+}E.push(s);});A.setAttribute("style",E.length?E.join(';'):'');if(!E.length){A.removeAttribute('style');}}return true;}});
// Roo/HtmlEditorCore.js
Roo.HtmlEditorCore=function(A){Roo.HtmlEditorCore.superclass.constructor.call(this,A);this.addEvents({initialize:true,activate:true,beforesync:true,beforepush:true,sync:true,push:true,editorevent:true});this.applyBlacklists();};Roo.extend(Roo.HtmlEditorCore,Roo.Component,{owner:false,resizable:false,height:300,width:500,stylesheets:false,allowComments:false,frameId:false,validationEvent:false,deferHeight:true,initialized:false,activated:false,sourceEditMode:false,onFocus:Roo.emptyFn,iframePad:3,hideMode:'offsets',clearUp:true,black:false,white:false,bodyCls:'',getDocMarkup:function(){var st='';
if(this.stylesheets===false){Roo.get(document.head).select('style').each(function(B){st+=B.dom.outerHTML||new XMLSerializer().serializeToString(B.dom);});Roo.get(document.head).select('link').each(function(B){st+=B.dom.outerHTML||new XMLSerializer().serializeToString(B.dom);
}
-}/**
+});/**
* @class Roo.htmleditor.FilterParagraph
* paragraphs cause a nightmare for shared content - this filter is designed to be called ? at various points when editing
* like on 'push' to remove the <p> tags and replace them with line breaks.
}
-};//<script type="text/javascript">
+});//<script type="text/javascript">
/*
* Based Ext JS Library 1.1.1
}
-}/**
+});/**
* @class Roo.htmleditor.FilterParagraph
* paragraphs cause a nightmare for shared content - this filter is designed to be called ? at various points when editing
* like on 'push' to remove the <p> tags and replace them with line breaks.
}
-};//<script type="text/javascript">
+});//<script type="text/javascript">
/*
* Based Ext JS Library 1.1.1
Roo.htmleditor.FilterComment=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterComment,Roo.htmleditor.Filter,{replaceComment:function(n){n.parentNode.removeChild(n);}});
// Roo/htmleditor/FilterKeepChildren.js
Roo.htmleditor.FilterKeepChildren=function(A){Roo.apply(this,A);this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterKeepChildren,Roo.htmleditor.FilterBlack,{replaceTag:function(n){for(var i=0;i<node.childNodes.length;i++){node.removeChild(node.childNodes[i]);
-node.insertBefore(node.childNodes[i],node);this.walk(node.childNodes[i]);}n.parentNode.removeChild(n);return false;}}
+node.insertBefore(node.childNodes[i],node);this.walk(node.childNodes[i]);}n.parentNode.removeChild(n);return false;}});
// Roo/htmleditor/FilterParagraph.js
Roo.htmleditor.FilterParagraph=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterParagraph,Roo.htmleditor.Filter,{tag:'P',replaceTag:function(node){if(node.childNodes.length==1&&node.childNodes[0].nodeType==3&&node.childNodes[0].nodeType.textContent.trim().length<1){node.parentNode.replaceChild(node.documentOwner.createElement('BR'),node);
return false;}for(var i=0;i<node.childNodes.length;i++){node.removeChild(node.childNodes[i]);node.insertBefore(node.childNodes[i],node);}node.insertBefore(node.documentOwner.createElement('BR'),node);node.parentNode.removeChild(node);return false;}};
}if(A.hasAttribute("style")){var B=A.getAttribute("style").split(";");var C=[];Roo.each(B,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^\s*(width|min-width)\s*$/)){return;}C.push(s);});A.setAttribute("style",C.length?C.join(';'):'');
if(!C.length){A.removeAttribute('style');}}this.walk(A);}});
// Roo/htmleditor/FilterWord.js
-Roo.htmleditor.FilterWord=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterWord,Roo.htmleditor.Filter,{tag:true,replaceTag:function(node){if(node.nodeName=='SPAN'&&!node.hasAttributes()&&node.childNodes.length==1&&node.firstChild.nodeName=="#text"){var textNode=node.firstChild;
-node.removeChild(textNode);if(node.getAttribute('lang')!='zh-CN'){node.parentNode.insertBefore(node.ownerDocument.createTextNode(" "),node);}node.parentNode.insertBefore(textNode,node);if(node.getAttribute('lang')!='zh-CN'){node.parentNode.insertBefore(node.ownerDocument.createTextNode(" "),node);
-}node.parentNode.removeChild(node);return false;}if(node.tagName.toLowerCase().match(/^(style|script|applet|embed|noframes|noscript)$/)){node.parentNode.removeChild(node);return false;}if(node.tagName.toLowerCase().match(/^(meta|link|\\?xml:|st1:|o:|v:|font)/)){while(node.childNodes.length){var cn=node.childNodes[0];
-node.removeChild(cn);node.parentNode.insertBefore(cn,node);this.replaceTag(cn);}node.parentNode.removeChild(node);return false;}if(node.className.length){var cn=node.className.split(/\W+/);var cna=[];Roo.each(cn,function(cls){if(cls.match(/Mso[a-zA-Z]+/)){return;
-}cna.push(cls);});node.className=cna.length?cna.join(' '):'';if(!cna.length){node.removeAttribute("class");}}if(node.hasAttribute("lang")){node.removeAttribute("lang");}if(node.hasAttribute("style")){var styles=node.getAttribute("style").split(";");var nstyle=[];
-Roo.each(styles,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^(mso-|line|font|background|margin|padding|color)/)){return;}nstyle.push(s);});node.setAttribute("style",nstyle.length?nstyle.join(';'):'');if(!nstyle.length){node.removeAttribute('style');
-}}return true;}};
+Roo.htmleditor.FilterWord=function(A){this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterWord,Roo.htmleditor.Filter,{tag:true,replaceTag:function(A){if(A.nodeName=='SPAN'&&!A.hasAttributes()&&A.childNodes.length==1&&A.firstChild.nodeName=="#text"){var B=A.firstChild;
+A.removeChild(B);if(A.getAttribute('lang')!='zh-CN'){A.parentNode.insertBefore(A.ownerDocument.createTextNode(" "),A);}A.parentNode.insertBefore(B,A);if(A.getAttribute('lang')!='zh-CN'){A.parentNode.insertBefore(A.ownerDocument.createTextNode(" "),A);}A.parentNode.removeChild(A);
+return false;}if(A.tagName.toLowerCase().match(/^(style|script|applet|embed|noframes|noscript)$/)){A.parentNode.removeChild(A);return false;}if(A.tagName.toLowerCase().match(/^(meta|link|\\?xml:|st1:|o:|v:|font)/)){while(A.childNodes.length){var cn=A.childNodes[0];
+A.removeChild(cn);A.parentNode.insertBefore(cn,A);this.replaceTag(cn);}A.parentNode.removeChild(A);return false;}if(A.className.length){var cn=A.className.split(/\W+/);var C=[];Roo.each(cn,function(F){if(F.match(/Mso[a-zA-Z]+/)){return;}C.push(F);});A.className=C.length?C.join(' '):'';
+if(!C.length){A.removeAttribute("class");}}if(A.hasAttribute("lang")){A.removeAttribute("lang");}if(A.hasAttribute("style")){var D=A.getAttribute("style").split(";");var E=[];Roo.each(D,function(s){if(!s.match(/:/)){return;}var kv=s.split(":");if(kv[0].match(/^(mso-|line|font|background|margin|padding|color)/)){return;
+}E.push(s);});A.setAttribute("style",E.length?E.join(';'):'');if(!E.length){A.removeAttribute('style');}}return true;}});
// Roo/HtmlEditorCore.js
Roo.HtmlEditorCore=function(A){Roo.HtmlEditorCore.superclass.constructor.call(this,A);this.addEvents({initialize:true,activate:true,beforesync:true,beforepush:true,sync:true,push:true,editorevent:true});this.applyBlacklists();};Roo.extend(Roo.HtmlEditorCore,Roo.Component,{owner:false,resizable:false,height:300,width:500,stylesheets:false,allowComments:false,frameId:false,validationEvent:false,deferHeight:true,initialized:false,activated:false,sourceEditMode:false,onFocus:Roo.emptyFn,iframePad:3,hideMode:'offsets',clearUp:true,black:false,white:false,bodyCls:'',getDocMarkup:function(){var st='';
if(this.stylesheets===false){Roo.get(document.head).select('style').each(function(B){st+=B.dom.outerHTML||new XMLSerializer().serializeToString(B.dom);});Roo.get(document.head).select('link').each(function(B){st+=B.dom.outerHTML||new XMLSerializer().serializeToString(B.dom);