Ecshop background Editor Replace with Ueditor editor
This article focuses on the detailed process of replacing the Ecshop background editor with the Ueditor Editor, which is recommended for small partners who have the same needs.
1, Ueditor1.4.3 download (as of 2015-03-03, the latest version)
Download Address: http://ueditor.baidu.com/website/download.html
jquery and other related file download to resolve jquery conflict
The file has JS conflict modified file, in addition has been modified Php/config.json in the map Save the path, users can also modify their own!
Because Lao Yang uses a Mac OS system, there are some in the file. Ds_store files can be ignored or deleted by themselves
Download Address: Http://pan.baidu.com/s/1gdglb0J Password: fflu (old Yang provided)
2, upload to the Web server
Unzip and upload the directory uediter to the root directory/includes
Unzip old Yang of that east, put Fix_jquery upload to Ueditor directory
3, modify the/admin/includes/lib_main.php
Find the following function
The code is as follows:
/**
* Generate editor
* @param string input_name input box name
* @param string input_value input Box value
*/
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);
}
To be replaced by:
The code is as follows:
/**
* Generate editor
* @param string input_name input box name
* @param string input_value input Box value
*/
function Create_html_editor ($input _name, $input _value = ")
{
Global $smarty;
$kindeditor = "
";
$smarty->assign (' FCKeditor ', $kindeditor);
}
4, modify the/admin/templates/pageheader.htm
Find:
The code is as follows:
{insert_scripts files= ". /js/transport.js,common.js,.. /js/utils.js "}
To be replaced by:
The code is as follows:
{insert_scripts files= ". /js/utils.js "}
5, solve the product editor in the editor is reset, Uedite cannot save the content of the bug.
Files:/admin/templates/goods_info.htm
Found it:
The code is as follows:
document.forms[' theform '].reset ();
Comment out:
The code is as follows:
document.forms[' theform '].reset ();
The above mentioned is the whole content of this article, I hope you can like.
http://www.bkjia.com/PHPjc/964002.html www.bkjia.com true http://www.bkjia.com/PHPjc/964002.html techarticle ecshop background Editor Replace with Ueditor Editor This article mainly introduces the Ecshop background editor to replace the Ueditor editor of the detailed process, it is recommended to have the same needs of small partners ...