DEDE的后台编辑器CKEditor还是3.6.2,,确实太古老了, 最关键的是存在诸多浏览器兼容的问题,所以不得不考虑升级,如下是我将编辑器升级至CKEditor最新版4.3.4的步骤,记录以备以后方便,同时也分享给大家,解决一些共性问题:
1. 到ckeditor官网下载最新版:网址为:http://ckeditor.com/download 这里我选择下载“Full Package”
2. 解压后,覆盖至/include/ckeditor/目录;3. 修改config.js文件内容为如下:
复制代码
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
config.uiColor = '#EEEEEE';
// 文件浏览
config.filebrowserImageBrowseUrl = "../include/dialog/select_images.php";
config.filebrowserFlashBrowseUrl = "../include/dialog/select_media.php";
config.filebrowserImageUploadUrl = "../include/dialog/select_images_post.php";
config.autoParagraph = false;
config.enterMode = CKEDITOR.ENTER_BR;
config.shiftEnterMode = CKEDITOR.ENTER_P;
};
4. 修改/include/inc/inc_fun_funAdmin.php,找到$config['skin'] = 'kama';
注释掉它//OK, 打完收工,测试完美升级,无后遗症。