rem: sHtml += '</head><body>' ; 
add: sHtml += '</head><body class="wikitext">' ; 
context: FCK.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 ) ;		// 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>' ) ;		}		else if ( FCKBrowserInfo.IsIE )		{			// IE doesn't support <abbr> and it breaks it. Let's protect it.			html = html.replace( FCKRegexLib.AbbrOpener, '<FCK:abbr$1' ) ;			html = html.replace( FCKRegexLib.AbbrCloser, '<\/FCK:abbr>' ) ;		}		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" />' ;			sHtml = html.replace( FCKRegexLib.HeadCloser, sHtml + '$&' ) ;			// Insert the base tag (FCKConfig.BaseHref), if not exists in the source.			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>' +				this._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 ;			sHtml += '</head><body>' ;						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	{		this.EditingArea.OnLoad = null ;		this.EditingArea.Start( html ) ;				// Enables the context menu in the textarea.		this.EditingArea.Textarea._FCKShowContextMenu = true ;	}	if ( FCKBrowserInfo.IsGecko )		window.onresize() ;}
meta: 1241	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1241/278fa25affd9a4fc4d9d69ae3f26c72d84ca6fb9/fck_1.js/buggy/_fckeditor/editor/_source/internals/fck_1.js