Ecshop background editor with ueditor editor _ php instance

Source: Internet
Author: User
This article describes how to replace the ecshop background editor with the ueditor editor. we recommend that you use the editor to meet your needs. 1. Ueditor1.4.3 download(As)

: Http://ueditor.baidu.com/website/download.html
Solve jquery conflicts and download related files
The file contains the js conflict modification file. In addition, you can modify the path of the graph in php/config. json!
Because old Yang uses mac OS, there are some. DS_store files in the files, which can be ignored or deleted by themselves.
: Http://pan.baidu.com/s/1gdglb0J password: fflu (provided by Lao Yang)

2. upload to the website server

Decompress and upload the directory uediter to the root directory/uplodes.
Decompress old Yang's stuff and upload fix_jquery to the ueditor directory.

3. modify/admin/mongodes/lib_main.php

Find the following function

The code is as follows:


/**
* Generate an editor
* @ Param string input_name name of the input box
* @ Param string input_value input box value
*/
Function create_html_editor ($ input_name, $ input_value = '')
{
Global $ smarty;

$ Editor = new FCKeditor ($ input_name );
$ Editor-> BasePath = '../schemdes/fckeditor /';
$ Editor-> ToolbarSet = 'normal ';
$ Editor-> Width = '000000 ';
$ Editor-> Height = '20140901 ';
$ Editor-> Value = $ input_value;
$ FCKeditor = $ editor-> CreateHtml ();
$ Smarty-> assign ('fckeditor', $ FCKeditor );
}

Replace:

The code is as follows:


/**
* Generate an editor
* @ Param string input_name name of the input box
* @ Param string input_value input box value
*/
Function create_html_editor ($ input_name, $ input_value = '')
{
Global $ smarty;
$ Kindeditor ="

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.