读书人

Fckeditor的运用(三):Fckeditor对象

发布时间: 2012-11-23 00:03:43 作者: rapoo

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属性的值,必需指定。

参数会赋值给同保属性

读书人网 >Web前端

热点推荐