ecshop将fckeditor编辑器换成kindEditor
文件:admin/includes/lib_main.php,找到如下代码:
- function create_html_editor($input_name, $input_value = '') {
- global $smarty;
- $editor = new FCKeditor($input_name);
- $editor->BasePath = '../includes/fckeditor/';
- $editor->ToolbarSet = 'Normal';
- $editor->Width = '100%';
- $editor->Height = '320';
- $editor->Value = $input_value;
- $FCKeditor = $editor->CreateHtml();
- $smarty->assign('FCKeditor', $FCKeditor);
- }
- //修改成
- function create_html_editor($input_name, $input_value = '')
- {
- global $smarty;
- $kindeditor="
- style='width:700px;height:300px;'>$input_value
- ";
- $smarty->assign('FCKeditor', $kindeditor);
- }
然后再进行修改上传目录修改includes/kindeditor/php/upload_json.php如下:
文件保存目录路径:
$save_path = $php_path . '../../../images/upload/';
文件保存目录URL:
$save_url = $php_url . '../../../images/upload/';
浏览服务器路径修改includes/kindeditor/php/file_manager_json.php如下:
根目录路径,可以指定绝对路径,比如 /var/www/attached/
$root_path = $php_path . '../../../images/upload/';
根目录URL,可以指定绝对路径,比如 http://www.yoursite.com/attached/
$root_url = $php_url . '../../../images/upload/';
最后将 admintemplatesgoods_info.htm 中 ; 将 button 改成 submit

