Replacing ECSHOP Backend Product Description Editor: FCKeditor to KindEditor

ECSHOP has always used FCKeditor – no need to explain why, too many problems and frustrations.

Many friends have asked how to replace it with a more convenient editor.Here’s how to replace the unfortunate FCKeditor. Methods below:

1. Download the latest version from the official websitekindeditor-4.1.5.zip  http://www.kindsoft.net/down.php

Address:http://pan.baidu.com/share/link?shareid=471388&uk=2047702797

2. Extract kindeditor and copy it to the includes directory, naming the folder kindeditor
3. Openadmin/includes/lib_main.php, search for function create_html_editor(

Replace the following content

1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}

with

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function create_html_editor($input_name, $input_value = '')
{
    global $smarty;
  
    $kindeditor="<script charset='utf-8' src='../includes/kindeditor/kindeditor-min.js'></script>
    <script>
        var editor;
            KindEditor.ready(function(K) {
                editor = K.create('textarea[name=/"$input_name/"]', {
                    allowFileManager : true,
                    width : '700px',
                    height: '300px',
                    resizeType: 0   //
                });
            });
    </script>
    
 
    ";
    $smarty->assign('FCKeditor', $kindeditor);
}

5. includes/kindeditor/php/upload_json.php:

//
$save_path = $php_path . '../../../images/upload/';
//URL
$save_url = $php_url . '../../../images/upload/';

6.Serverincludes/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/';

ps:2.7.1、2.7.2,2.7.3,admin/templates/goods_info.htm 2.7.22.7.1

2.7.2goods_info.htm :

http://pan.baidu.com/share/link?shareid=471391&uk=2047702797

,,-!

Leave a Comment

Your email address will not be published.