All pastes #978489 Raw Edit

Stuff

public php v1 · immutable
·published 2008-04-09 16:26 UTC
rendered paste body
FCKeditor.prototype.Create = function(){	document.write( this.CreateHtml() ) ;}FCKeditor.prototype.CreateHtml = function(){	// Check for errors	if ( !this.InstanceName || this.InstanceName.length == 0 )	{		this._ThrowError( 701, 'You must specify an instance name.' ) ;		return '' ;	}	var sHtml = '' ;	if ( !this.CheckBrowser || this._IsCompatibleBrowser() )	{		sHtml += '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '" style="display:none" />' ;		sHtml += this._GetConfigHtml() ;		sHtml += this._GetIFrameHtml() ;	}	else	{		var sWidth  = this.Width.toString().indexOf('%')  > 0 ? this.Width  : this.Width  + 'px' ;		var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ;		sHtml += '<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="width:' + sWidth + ';height:' + sHeight + '">' + this._HTMLEncode( this.Value ) + '<\/textarea>' ;	}	return sHtml ;}