Ecshop Editor FCKeditor change Baidu ueditor Editor Tutorial

Source: Internet
Author: User

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   &LT;/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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.