81,122
社区成员




var sBasePath = '${widgethome}/fckeditor/';
var oEditor = new FCKeditor('fcktextContent'); //构建FCKeditor对象,这里是采取textarea的构造方式,所以编辑器实例名就是textarea对象的id或者name值
oEditor.BasePath = sBasePath ; //编辑器的基路径,注意,尽量不要使用相对路径.最好能用相对于站点根路径的表示方法,要以/结尾
oEditor.ToolbarSet = 'Text' ; //文本编辑器
oEditor.Width = 600; //指定编辑器的宽度
oEditor.Height = 300; //指定编辑器的高度
oEditor.ReplaceTextarea(); //初始化编辑器