Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel=null;Sys.Extended.UI.HtmlEditor.EditPanel=function(n){Sys.Extended.UI.HtmlEditor.EditPanel.initializeBase(this,[n]);this._loaded=!1;this._eAfter=null;this._toolbars=null;this._modePanels=null;this._contentChangedElement=null;this._contentElement=null;this._contentForceElement=null;this._activeModeElement=null;this._suppressTabInDesignMode=!1;this._keyboardEnabled=!0;this._noPaste=!1;this._hotkeys=null;this._showAnchors=!1;this._showPlaceHolders=!1;this._startEnd=!0;this._relativeImages=!0;this._documentCssPath=null;this._designPanelCssPath=null;this._imagePath_1x1=null;this._imagePath_flash=null;this._imagePath_media=null;this._imagePath_anchor=null;this._imagePath_placeHolder=null;this._autofocus=!0;this._initialCleanUp=!1;this._noScript=!1;this._noUnicode=!1;this._cachedToolbarIds=null;this._contentPrepared=!1;this._activeMode=null;this._pageRequestManager=null;this._formOnSubmitSaved=null;this._validators=null;this._app_onload$delegate=Function.createDelegate(this,this._app_onload);this._onsubmit$delegate=Function.createDelegate(this,this._onsubmit);this._disposed=!0};Sys.Extended.UI.HtmlEditor.EditPanel.prototype={get_relativeImages:function(){return this._relativeImages},set_relativeImages:function(n){this._relativeImages=n;this._loaded&&this.raisePropertyChanged("relativeImages")},get_startEnd:function(){return this._startEnd},set_startEnd:function(n){this._startEnd=n;this._loaded&&this.raisePropertyChanged("startEnd")},get_showPlaceHolders:function(){return this._showPlaceHolders},set_showPlaceHolders:function(n){this._showPlaceHolders=n;this._loaded&&this.raisePropertyChanged("showPlaceHolders")},get_showAnchors:function(){return this._showAnchors},set_showAnchors:function(n){this._showAnchors=n;this._loaded&&this.raisePropertyChanged("showAnchors")},get_hotkeys:function(){return this._hotkeys},set_hotkeys:function(n){this._hotkeys=n;this._loaded&&this.raisePropertyChanged("noPaste")},get_noPaste:function(){return this._noPaste},set_noPaste:function(n){this._noPaste=n;this._loaded&&this.raisePropertyChanged("noPaste")},get_suppressTabInDesignMode:function(){return this._suppressTabInDesignMode},set_suppressTabInDesignMode:function(n){this._suppressTabInDesignMode=n;this._loaded&&this.raisePropertyChanged("suppressTabInDesignMode")},get_keyboardEnabled:function(){return this._keyboardEnabled},set_keyboardEnabled:function(n){this._keyboardEnabled=n;this._loaded&&this.raisePropertyChanged("keyboardEnabled")},get_noUnicode:function(){return this._noUnicode},set_noUnicode:function(n){this._noUnicode=n;this._loaded&&this.raisePropertyChanged("noUnicode")},get_noScript:function(){return this._noScript},set_noScript:function(n){this._noScript=n;this._loaded&&this.raisePropertyChanged("noScript")},get_initialCleanUp:function(){return this._initialCleanUp},set_initialCleanUp:function(n){this._initialCleanUp=n;this._loaded&&this.raisePropertyChanged("initialCleanUp")},get_imagePath_1x1:function(){return this._imagePath_1x1},set_imagePath_1x1:function(n){this._imagePath_1x1=n},get_imagePath_flash:function(){return this._imagePath_flash},set_imagePath_flash:function(n){this._imagePath_flash=n},get_imagePath_media:function(){return this._imagePath_media},set_imagePath_media:function(n){this._imagePath_media=n},get_imagePath_anchor:function(){return this._imagePath_anchor},set_imagePath_anchor:function(n){this._imagePath_anchor=n},get_imagePath_placeHolder:function(){return this._imagePath_placeHolder},set_imagePath_placeHolder:function(n){this._imagePath_placeHolder=n},get_documentCssPath:function(){return this._documentCssPath},set_documentCssPath:function(n){this._documentCssPath=n;this._loaded&&this.raisePropertyChanged("documentCssPath")},get_designPanelCssPath:function(){return this._designPanelCssPath},set_designPanelCssPath:function(n){this._designPanelCssPath=n;this._loaded&&this.raisePropertyChanged("designPanelCssPath")},get_autofocus:function(){return this._autofocus},set_autofocus:function(n){this._autofocus=n;this._loaded&&this.raisePropertyChanged("autofocus")},get_content:function(){return this._activeMode==null?this.get_contentElement()!=null?this._getContentForPostback():"":this.getContent()},set_content:function(n){if(!this.get_isInitialized()||!this._loaded){this.get_contentElement()!=null&&(this.get_contentElement().value=n.replace(/\"/g,"""));return}this.setContent(n);this._contentPrepared=!1;this._loaded&&this.raisePropertyChanged("content")},get_activeMode:function(){return this._activeMode==null?Sys.Extended.UI.HtmlEditor.ActiveModeType.Design:this._activeMode},set_activeMode:function(n){var t,i,r;if(!Sys.Extended.UI.HtmlEditor.ActiveModeType_checkValue(n))throw Error.argumentOutOfRange("value, function: Sys.Extended.UI.HtmlEditor.EditPanel.set_activeMode");return t=this._activeMode,i=!0,this._loaded&&t!=null&&t!=n?(r=new Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs(t,n,this),this.raiseBeforeActiveModeChanged(r),this._eAfter=new Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs(t,n,this),i=this._setMode(n)):this._activeMode=n,this.get_activeModeElement().value=n,i},get_contentChangedElement:function(){return this._contentChangedElement},set_contentChangedElement:function(n){this._contentChangedElement=n},get_contentElement:function(){return this._contentElement},set_contentElement:function(n){this._contentElement=n},get_contentForceElement:function(){return this._contentForceElement},set_contentForceElement:function(n){this._contentForceElement=n},get_activeModeElement:function(){return this._activeModeElement},set_activeModeElement:function(n){this._activeModeElement=n},setCancelOnPostback:function(){this._loaded&&(this.get_contentForceElement().value="")},setAcceptOnPostback:function(){this._loaded&&(this.get_contentForceElement().value="1")},get_toolbars:function(){return this._toolbars==null&&(this._toolbars=[]),this._toolbars},set_toolbars:function(n){this.get_toolbars().push(n)},get_toolbarIds:function(){},set_toolbarIds:function(n){var i,t;if(!this.get_isInitialized()){this._cachedToolbarIds=n;return}for(i=n.split(";"),t=0;t0&&this.set_toolbars($find(i[t]))},get_modePanels:function(){return this._modePanels==null&&(this._modePanels=[]),this._modePanels},set_modePanel:function(n){this.get_modePanels().push(n)},get_modePanelIds:function(){},set_modePanelIds:function(n){for(var i=n.split(";"),t=0;t").replace(/"/g,'"').replace(/&/g,"&"),this.setContent(this._initialCleanUp?Sys.Extended.UI.HtmlEditor.cleanUp(o.replace(/[\n\r]+/g," ")):o),this.setAcceptOnPostback())},_setActive:function(){for(var n=0;n)(?:[^>]*?)>/gi,"").replace(/<\/?head(?=\s|>)(?:[^>]*?)>/gi,"").replace(/<\/?body(?=\s|>)(?:[^>]*?)>/gi,"").replace(/^([\n\r]+)/,"").replace(/([\n\r]+)$/,"");return Sys.Extended.UI.HtmlEditor.isIE||(n=n.replace(/^
$/,"")),n},setContent:function(n){var t=n;this.get_noScript()&&(t=t.replace(/(