Replace the ecshop background editor with the ueditor editor. Ecshop background editor replaced by ueditor this article mainly introduces the detailed process of replacing ecshop background editor with ueditor. Here we recommend that you replace ecshop background editor with ueditor editor with those who have the same requirements.
This article describes how to replace the ecshop background editor with the ueditor editor. we recommend that you use the editor to meet your needs.
1. Ueditor1.4.3 download (as)
: Http://ueditor.baidu.com/website/download.html
Solve jquery conflicts and download related files
The file contains the js conflict modification file. In addition, you can modify the path of the graph in php/config. json!
Because old Yang uses mac OS, there are some. DS_store files in the files, which can be ignored or deleted by themselves.
: Http://pan.baidu.com/s/1gdglb0J password: fflu (provided by Lao Yang)
2. upload to the website server
Decompress and upload the directory uediter to the root directory/uplodes.
Decompress old Yang's stuff and upload fix_jquery to the ueditor directory.
3. modify/admin/mongodes/lib_main.php
Find the following function
The code is as follows:
/**
* Generate an editor
* @ Param string input_name name of the input box
* @ Param string input_value input box value
*/
Function create_html_editor ($ input_name, $ input_value = '')
{
Global $ smarty;
$ Editor = new FCKeditor ($ input_name );
$ Editor-> BasePath = '../schemdes/fckeditor /';
$ Editor-> ToolbarSet = 'normal ';
$ Editor-> Width = '000000 ';
$ Editor-> Height = '20140901 ';
$ Editor-> Value = $ input_value;
$ FCKeditor = $ editor-> CreateHtml ();
$ Smarty-> assign ('fckeditor', $ FCKeditor );
}
Replace:
The code is as follows:
/**
* Generate an editor
* @ Param string input_name name of the input box
* @ Param string input_value input box value
*/
Function create_html_editor ($ input_name, $ input_value = '')
{
Global $ smarty;
$ Kindeditor ="