0

我在项目的某些模块中使用了 FCKEditor,当时我index.php在我的 url 中使用,但是当我删除时index.php,FCKEditor 从页面上消失了,它没有显示任何错误,只是 FCKEditor 的位置显示空白任何想法?

$fckeditorConfig = array('instanceName' => 'fckcontent',
                         'BasePath' => base_url().'systemfiles/plugins/FCKeditor/', 
                         'ToolbarSet' => '', 
                         'Width' => '600', 
                         'Height' => '370',
                         'Value' => $this->input->post('fckcontent'));

$this->load->library('fckeditor', $fckeditorConfig);
4

1 回答 1

1

第一步:制作.htaccess

#RewriteBase /
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L] 

用户指南: http ://ellislab.com/codeigniter/user-guide/general/urls.html

第二步:编辑 config\config.php 并设置 base_url()

$config['base_url'] = '';

并删除索引页

$config['index_page'] = '';

第三步:不要使用fckeditor,使用ckeditor

阅读维基: https ://github.com/EllisLab/CodeIgniter/wiki/CKEditor

于 2013-01-03T15:10:06.297 回答