Fckeditor的使用(三):Fckeditor对象的构造器
构造器
var FCKeditor = function( instanceName, width, height, toolbarSet, value )
{
??? // Properties
??? this.InstanceName??? = instanceName ;
??? this.Width??? ??? ??? = width??? ??? ??? || '100%' ;
??? this.Height??? ??? ??? = height??? ??? || '200' ;
??? this.ToolbarSet??? ??? = toolbarSet??? || 'Default' ;
??? this.Value??? ??? ??? = value??? ??? ??? || '' ;
??? this.BasePath??? ??? = FCKeditor.BasePath ;
??? this.CheckBrowser??? = true ;
??? this.DisplayErrors??? = true ;
??? this.Config??? ??? ??? = new Object() ;
??? // Events
??? this.OnError??? ??? = null ;??? // function( source, errorNumber, errorDescription )
}
instanceName: 编辑器输出的textarea元素的name属性的值,必需指定。
参数会赋值给同保属性