1, download Uediter Editor, unzip the upload directory Uediter to the root directory/includes/ 2, modify admin/includes/lib_main.php /** * Build editor * @param string input_name input box name * @param String & Nbsp;input_value input Box value */ function create_html_editor ($input _name, $input _value = ") { & nbsp 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); } modified to: /** * 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; // www.lyecs.com $kindeditor = " <script id= ' editor ' name= ' $input _name ' type= ' text/ Plain ' style= ' width:1024px;height:500px; ' > $input _value</script> <script type= ' text/javascript ' charset= ' utf-8 ' src= ' ... /includes/ueditor/ueditor.config.js ' ></script> <script type= ' Text/javascript ' charset= ' utf-8 ' src= '. /includes/ueditor/ueditor.all.min.js ' > </script> <script type= ' Text/javascript ' charset= ' utf-8 ' src= '. /includes/ueditor/lang/zh-cn/zh-cn.js ' ></script> <script> var UE = ue.geteditor (' editor '); ue.geteditor (' editor '). focus (); & nbsp </SCript> <input type=\ "submit\" value=\ "submit \"/> "; //zuimoban $smarty->assign (' FCKeditor ', $kindeditor);} 3, modify admin/templates/pageheader.htm will: {insert_scripts files= ". /js/transport.js,common.js,.. /js/utils.js "} replaced by: <script type=" Text/javascript "src=". /includes/ueditor/fix_jquery/jquery.min.js "rel=" stylesheet "/></script> <script type=" text/ JavaScript "src=". /includes/ueditor/fix_jquery/jquery.json-1.3.js "rel=" stylesheet "/></script> <script type=" text /javascript "src=" Js/common.js "rel=" stylesheet "/></script> <script type=" Text/javascript "src=" ... /includes/ueditor/fix_jquery/transport_json.js "rel=" stylesheet "/></script> {insert_scripts files= ".. /js/utils.js "} 4, the editor in the resolved item editor is reset, uedite the bug that the content cannot be saved. admin/templates/goods_info.htm found document.forms[' theform '].reset (); modified to: //document.forms[' theform '].reset (); file contains JS conflict modified file, in addition, modified Php/config.json in the map Save the path, users can also modify their own! |
Ecshop Editor FCKeditor Baidu ueditor Editor Tutorial