1, Ueditor1.4.3 download (as of 2015-03-03, the latest version)
: 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
: 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
/** * Build 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 = '; $editor->value = $input _value; $FCKeditor = $editor->createhtml (); $smarty->assign (' FCKeditor ', $FCKeditor); }
Replaced by:
/** * Build 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 = " <script id= ' editor ' name= ' $input _name ' type= ' text /plain ' style= ' width:1024px;height:500px; ' > $input _value</script> <script charset= ' utf-8 ' src= '. /includes/ueditor/ueditor.config.js ' ></script> <script charset= ' utf-8 ' src= '. /includes/ueditor/ueditor.all.min.js ' ></script> <script> var ue = ue.geteditor (' editor '); </script> "; $smarty->asSign (' FCKeditor ', $kindeditor);}
4, modify the/admin/templates/pageheader.htm
Find:
{insert_scripts files= ". /js/transport.js,common.js,.. /js/utils.js "}
To be replaced by:
<script src= ". /includes/ueditor/fix_jquery/jquery.min.js "></script><script src=". /includes/ueditor/fix_jquery/jquery.json-1.3.js "></script><script src=" Js/common.js "></script ><script src= ". /includes/ueditor/fix_jquery/transport_json.js "></script>{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:
document.forms[' theform '].reset ();
Comment out:
document.forms[' theform '].reset ();
Ecshop background Editor Replace with Ueditor editor