配置fckeditor

 

目录结构为,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文件夹。

 

posted @ 2017-07-26 17:21  琴声清幽  阅读(124)  评论(0编辑  收藏  举报