Ecshop background Editor Replace with Ueditor editor _php tutorial

Source: Internet
Author: User

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 ...

  • Related Article

    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.