首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Fckeditor的运用(三):Fckeditor对象的构造器

2012-11-23 
Fckeditor的使用(三):Fckeditor对象的构造器构造器 var FCKeditor function( instanceName, width, heig

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

参数会赋值给同保属性

热点排行