<?php //加载入口文件 include("FCKeditor/fckeditor.php"); //建立对象 $oFCKeditor = new FCKeditor('content') ; //FCKeditor所在的位置 $oFCKeditor->BasePath = 'FCKeditor/' ; //工具按钮 $oFCKeditor->Width='100%'; $oFCKeditor->Height='450'; $oFCKeditor->ToolbarSet = 'Default' ; //$oFCKeditor->Value = $_SERVER['SCRIPT_NAME']; $oFCKeditor->Create();?>
content:即textarea的name值;
fckconfig.js:此文件打开后有'Defaut'和'Basic'两种自定义工具条种类,可以修改;
FCKeditor/editor/filemanager/connectors/php/config.php:可以把第一个false改为true,方可上传文件;下一个'UserFilesPath'参数,即是保存上传文件的路径