rem: { 
add: { 
context: 	SetHTML : function( html )	{		this.EditingArea.Mode = FCK.EditMode ;		if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )		{				html = FCKConfig.ProtectedSource.Protect( html ) ;			html = FCK.ProtectEvents( html ) ;			html = FCK.ProtectUrls( html ) ;			html = FCK.ProtectTags( html ) ;			// Firefox can't handle correctly the editing of the STRONG and EM tags. 			// We must replace them with B and I.			if ( FCKBrowserInfo.IsGecko )			{				html = html.replace( FCKRegexLib.StrongOpener, '<b$1' ) ;				html = html.replace( FCKRegexLib.StrongCloser, '<\/b>' ) ;				html = html.replace( FCKRegexLib.EmOpener, '<i$1' ) ;				html = html.replace( FCKRegexLib.EmCloser, '<\/i>' ) ;			}			var sHtml = '' ;			if ( FCKConfig.FullPage )			{				// The HTML must be fixed if the <head> is not available.				if ( !FCKRegexLib.HeadOpener.test( html ) )				{					// Check if the <html> is available.					if ( !FCKRegexLib.HtmlOpener.test( html ) )						html = '<html dir="' + FCKConfig.ContentLangDirection + '">' + html + '</html>' ;										// Add the <head>.					html = html.replace( FCKRegexLib.HtmlOpener, '$&<head></head>' ) ;				}								// Save the DOCTYPE.				FCK.DocTypeDeclaration = html.match( FCKRegexLib.DocTypeTag ) ;								if ( FCKBrowserInfo.IsIE )					sHtml = FCK._GetBehaviorsStyle() ;				else if ( FCKConfig.ShowBorders ) 					sHtml = '<link href="' + FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css" rel="stylesheet" type="text/css" _fcktemp="true" />' ;				sHtml += '<link href="' + FCKConfig.FullBasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" />' ;				// Attention: do not change it before testing it well (sample07)!				// This is tricky... if the head ends with <meta ... content type>,				// Firefox will break. But, it works if we include the temporary				// links as the last elements in the HEAD.				sHtml = html.replace( FCKRegexLib.HeadCloser, sHtml + '$&' ) ;				// Insert the base tag (FCKConfig.BaseHref), if not exists in the source.				// The base must be the first tag in the HEAD, to get relative				// links on styles, for example.				if ( FCK.TempBaseTag.length > 0 && !FCKRegexLib.HasBaseTag.test( html ) )					sHtml = sHtml.replace( FCKRegexLib.HeadOpener, '$&' + FCK.TempBaseTag ) ;			}			else			{				sHtml =					FCKConfig.DocType +					'<html dir="' + FCKConfig.ContentLangDirection + '"' ;								// On IE, if you are use a DOCTYPE differenft of HTML 4 (like				// XHTML), you must force the vertical scroll to show, otherwise				// the horizontal one may appear when the page needs vertical scrolling.				if ( FCKBrowserInfo.IsIE && !FCKRegexLib.Html4DocType.test( FCKConfig.DocType ) )					sHtml += ' style="overflow-y: scroll"' ;								sHtml +=					'><head><title></title>' +					_FCK_GetEditorAreaStyleTags() +					'<link href="' + FCKConfig.FullBasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" />' ;				if ( FCKBrowserInfo.IsIE )					sHtml += FCK._GetBehaviorsStyle() ;				else if ( FCKConfig.ShowBorders ) 					sHtml += '<link href="' + FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css" rel="stylesheet" type="text/css" _fcktemp="true" />' ;				sHtml += FCK.TempBaseTag ;				// Add ID and Class to the body				var sBodyTag = '<body' ;				if ( FCKConfig.BodyId && FCKConfig.BodyId.length > 0 )					sBodyTag += ' id="' + FCKConfig.BodyId + '"' ;				if ( FCKConfig.BodyClass && FCKConfig.BodyClass.length > 0 )					sBodyTag += ' class="' + FCKConfig.BodyClass + '"' ;				sHtml += '</head>' + sBodyTag + '>' ;				if ( FCKBrowserInfo.IsGecko && ( html.length == 0 || FCKRegexLib.EmptyParagraph.test( html ) ) )					sHtml += GECKO_BOGUS ;				else					sHtml += html ;								sHtml += '</body></html>' ;			}			this.EditingArea.OnLoad = _FCK_EditingArea_OnLoad ;			this.EditingArea.Start( sHtml ) ;		}		else		{			// Remove the references to the following elements, as the editing area			// IFRAME will be removed.			FCK.EditorWindow	= null ;			FCK.EditorDocument	= null ; 					this.EditingArea.OnLoad = null ;			this.EditingArea.Start( html ) ;						// Enables the context menu in the textarea.			this.EditingArea.Textarea._FCKShowContextMenu = true ;			// Removes the enter key handler.			FCK.EnterKeyHandler = null ;			// Listen for keystroke events.			FCK.KeystrokeHandler.AttachToElement( this.EditingArea.Textarea ) ;						this.EditingArea.Textarea.focus() ;			FCK.Events.FireEvent( 'OnAfterSetHTML' ) ;		}		if ( FCKBrowserInfo.IsGecko )			window.onresize() ;	},
meta: 8533	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8533/9e983f26dc3628701a539d2377aaa3db1e8f1f71/fck.js/buggy/library/src/webapp/editor/FCKeditor/editor/_source/internals/fck.js