目录结构为,http://localhost/admin/index.php/
<?php include 'fckeditor/fckeditor.php';
$BasePath = ("../fckeditor/"); $BasePath = (site_url('fckeditor/')); //ci下的绝对路径,更多适用
$oFCKeditor = new FCKeditor("FCKeditor1");
$oFCKeditor->BasePath = $BasePath;
$oFCKeditor->Width = '100%'; // 编辑器宽度,类中有默认值,如果不想修改可不管此项
$oFCKeditor->Height= '400'; //
$oFCKeditor->Create();
?>
然后修改fckeditor下,filemanager下,connectors下,php下,config.php文件,
$Config['Enabled'] = true ;
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/upload/' ;
目录在网站根目录下,建立upload文件夹。