0)try{Sys.Extended.UI.HtmlEditor.isIE?$removeHandler(e[t],"dragstart",Sys.Extended.UI.HtmlEditor.stopDrag):$removeHandler(e[t],"draggesture",Sys.Extended.UI.HtmlEditor.stopDrag)}catch(e){}Sys.Extended.UI.HtmlEditor._removeEvents(this._doc,["keydown","keypress","mousedown","mouseup","dblclick"],this._events$delegate),Sys.Extended.UI.HtmlEditor._removeEvents(this.get_element().contentWindow,["blur"],this._blur$delegate),Sys.Extended.UI.HtmlEditor._removeEvents(this.get_element().contentWindow,["focus"],this._focus$delegate)},_initIframe:function(e){Sys.Extended.UI.HtmlEditor.isIE||(this._savedValue=e,this._absAndFixedParents=this._getAbsAndFixedParents());var t=Sys.Extended.UI.HtmlEditor.Trim(this._prepareContent(e));this._doc=this.get_element().contentWindow.document,Sys.Extended.UI.HtmlEditor.isIE||(this._doc.designMode="on"),this._doc.open(),this._doc.write(''+t+""),this._doc.close(),this._doc.id="EditorDocument",Sys.Extended.UI.HtmlEditor.isIE&&(this._doc.body.contentEditable=!0,this._tryForward=!0)},_blur:function(e){return this._editPanel.__blured=!0,Sys.Extended.UI.HtmlEditor.isIE||null==this._design_timer1||(clearTimeout(this._design_timer1),this._design_timer1=null),this.isPopup||this._editPanel._validate(e,null),!0},_focus_event:function(){if(this._editPanel.__blured=!1,Sys.Extended.UI.HtmlEditor.isIE)this._really_focused();else{var e=this;Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel=this._editPanel,null==this._design_timer1&&(this._design_timer1=setTimeout(function(){e._really_focused(),e._design_timer1=null},0))}return!0},_getAbsAndFixedParents:function(){for(var e=this.get_element(),t="";null!=e&&e.tagName&&"body"!=e.tagName.toLowerCase();)t+=e.tagName,"absolute"!=e.style.position&&"fixed"!=e.style.position||(t+=": "+e.style.position),t+="\n",e=e.parentNode;return t},_onDocumentLoaded:function(){var e=this;if(!Sys.Extended.UI.HtmlEditor.isIE){var t=this._getAbsAndFixedParents();if(t!=this._absAndFixedParents)return this._initIframe(this._savedValue),void setTimeout(function(){e._onDocumentLoaded()},10)}try{if(!Sys.Extended.UI.HtmlEditor.isIE&&(this._doc.queryCommandValue("forecolor"),(Sys.Extended.UI.HtmlEditor.isSafari||Sys.Extended.UI.HtmlEditor.isOpera)&&!Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element())))return void setTimeout(function(){e._onDocumentLoaded()},10);e._doc.body.innerHTML}catch(t){return void setTimeout(function(){e._onDocumentLoaded()},10)}this._afterBodyIsFormed(),setTimeout(function(){e._activateFinished(),Sys.Extended.UI.HtmlEditor.isIE&&!e._editPanel.get_autofocus()&&e._getSelection().empty()},0)},_afterBodyIsFormed:function(){var e=this;Sys.Extended.UI.HtmlEditor._addEvents(this._doc,["keydown","keypress","mousedown","mouseup","dblclick"],this._events$delegate),Sys.Extended.UI.HtmlEditor._addEvents(this.get_element().contentWindow,["blur"],this._blur$delegate),Sys.Extended.UI.HtmlEditor._addEvents(this.get_element().contentWindow,["focus"],this._focus$delegate),Sys.Extended.UI.HtmlEditor.inspectForShadows(e._doc.body);var t=this._doc.body;if(1==t.childNodes.length&&t.firstChild.tagName&&"DIV"==t.firstChild.tagName.toUpperCase()&&t.firstChild.style.cssText.length>0&&t.firstChild.style.direction.length>0&&"absolute"!=Sys.Extended.UI.HtmlEditor.getStyle(t.firstChild,"position")){t.style.cssText=t.firstChild.style.cssText;for(var i=t.firstChild;i.firstChild;)t.insertBefore(i.firstChild,i);t.removeChild(i)}e._clearP()},_getContent:function(){if(null!=this._popup&&"function"==typeof this._popup._forceImClose){var e=this._popup._forceImClose;e(this._popup._iframe.contentWindow)}this._clearP();var t;if(Sys.Extended.UI.HtmlEditor.isIE){Sys.Extended.UI.HtmlEditor.spanJoiner(this._doc.body,this._doc),t=Sys.Extended.UI.HtmlEditor.getHTML(this._doc.body,!1,!0),t=t.replace(/(| ]*?>)([\s ]*?)(<\/td[^>]*?>)/gi,"$1 $3").replace(/( | ]*?>)\s*( )\s*(<\/td[^>]*?>)/gi,"$1 $3").replace(/(]*?>)\s*( )\s*(<\/p[^>]*?>)/gi,"$1 $3"),t=(this._doc.body.style.cssText.length>0?' ':"")+t+(this._doc.body.style.cssText.length>0?" ":""),this._editPanel.get_noScript()&&(t=t.replace(/( |