Ecshop background Editor Replace with Ueditor editor

Source: Internet
Author: User

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

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.