在php中使用fckeditor时:
在./fckeditor/editor/filemanager/connectors/php/config.php中
修该$_SESSION['user_name']中username值和$Config['UserFilesPath'] =$root_path.'Attachments/'.$date.'/';改为$Config['UserFilesPath'] =ROOT_PATH.'Attachments/'.$date.'/';
在页面中调用
include("FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('FCKeditor1') ; // 创建FCKeditor实例
$oFCKeditor->BasePath = 'fckeditor/'; // 设置FCKeditor目录地址
$FCKeditor->Width='100%'; //设置显示宽度
$FCKeditor->Height='300px'; //设置显示高度的高度
$fck=$oFCKeditor->CreateHtml() ; // 创建编辑器