Table of Contents
Replace the ecshop background editor with the ueditor editor
Home Backend Development PHP Tutorial Replace the ecshop background editor with the ueditor editor_PHP tutorial

Replace the ecshop background editor with the ueditor editor_PHP tutorial

Jul 13, 2016 am 10:04 AM
ecshop Backstage Replace with article editor

Replace the ecshop background editor with the ueditor editor

This article mainly introduces the detailed process of replacing the ecshop background editor with the ueditor editor. It is recommended here for those who have the same needs. Friends.

1. Download Ueditor1.4.3 (latest version as of 2015-03-03)

Download address: http://ueditor.baidu.com/website/download.html
Download jquery and other related files to resolve jquery conflicts
The file already contains js conflict modification files. In addition, the image saving path in php/config.json has been modified. Users can also modify it themselves!
Because Lao Yang uses a mac os system, there are some .DS_store files in the file, which can be ignored or deleted by yourself
Download address: http://pan.baidu.com/s/1gdglb0J Password: flu (provided by Lao Yang)

2. Upload to the website server

Unzip and upload the directory uediter to the root directory /includes
Unzip Lao Yang’s stuff and upload fix_jquery to the ueditor directory

3. Modify /admin/includes/lib_main.php

Find the function below

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);
}

Replace

with:

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="



<script><br> var ue = UE.getEditor('editor');<br> </script>
";
$smarty->assign('FCKeditor', $kindeditor);
}

4. Modify /admin/templates/pageheader.htm

Find:

The code is as follows:


{insert_scripts files="../js/transport.js,common.js,../js/utils.js"}

Replace

with:

The code is as follows:






{insert_scripts files="../js/utils.js"}

5. Solve the bug where the editor is reset during product editing and uedite cannot save the content.

File:/admin/templates/goods_info.htm
Found:

The code is as follows:


document.forms['theForm'].reset();

Comment out:

The code is as follows:


//document.forms['theForm'].reset();

The above is the entire content of this article, I hope you all like it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/964002.htmlTechArticleReplacement of ecshop background editor with ueditor editor This article mainly introduces the replacement of ecshop background editor with ueditor editor The detailed process is recommended here to friends who have the same needs...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Discuz background login problem solution revealed Discuz background login problem solution revealed Mar 03, 2024 am 08:57 AM

The solution to the Discuz background login problem is revealed. Specific code examples are needed. With the rapid development of the Internet, website construction has become more and more common, and Discuz, as a commonly used forum website building system, has been favored by many webmasters. However, precisely because of its powerful functions, sometimes we encounter some problems when using Discuz, such as background login problems. Today, we will reveal the solution to the Discuz background login problem and provide specific code examples. We hope to help those in need.

How can I make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! How can I make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! Mar 15, 2024 pm 04:13 PM

1. How can you make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! 1. Activate basic rights and interests: original articles can earn profits by advertising, and videos must be original in horizontal screen mode to earn profits. 2. Activate the rights of 100 fans: if the number of fans reaches 100 fans or above, you can get profits from micro headlines, original Q&amp;A creation and Q&amp;A. 3. Insist on original works: Original works include articles, micro headlines, questions, etc., and are required to be more than 300 words. Please note that if illegally plagiarized works are published as original works, credit points will be deducted, and even any profits will be deducted. 4. Verticality: When writing articles in professional fields, you cannot write articles across fields at will. You will not get appropriate recommendations, you will not be able to achieve the professionalism and refinement of your work, and it will be difficult to attract fans and readers. 5. Activity: high activity,

Detailed guide to 15 Python editors/IDEs, there is always one that suits you! Detailed guide to 15 Python editors/IDEs, there is always one that suits you! Aug 09, 2023 pm 05:44 PM

There is no better way to write Python code than using an integrated development environment (IDE). Not only can they make your work simpler and more logical, they can also improve programming experience and efficiency. Everyone knows this. The question is, how to choose the best Python development environment among the many options.

Essential software for C language programming: five good helpers recommended for beginners Essential software for C language programming: five good helpers recommended for beginners Feb 20, 2024 pm 08:18 PM

C language is a basic and important programming language. For beginners, it is very important to choose appropriate programming software. There are many different C programming software options on the market, but for beginners, it can be a bit confusing to choose which one is right for you. This article will recommend five C language programming software to beginners to help them get started quickly and improve their programming skills. Dev-C++Dev-C++ is a free and open source integrated development environment (IDE), especially suitable for beginners. It is simple and easy to use, integrating editor,

Are you worried about WordPress backend garbled code? Try these solutions Are you worried about WordPress backend garbled code? Try these solutions Mar 05, 2024 pm 09:27 PM

Are you worried about WordPress backend garbled code? Try these solutions, specific code examples are required. With the widespread application of WordPress in website construction, many users may encounter the problem of garbled code in the WordPress backend. This kind of problem will cause the background management interface to display garbled characters, causing great trouble to users. This article will introduce some common solutions to help users solve the trouble of garbled characters in the WordPress backend. Modify the wp-config.php file and open wp-config.

Fix the issue where Windows 11/10 login options are disabled Fix the issue where Windows 11/10 login options are disabled May 07, 2023 pm 01:10 PM

Many Windows users have encountered the problem of being unable to log in to Windows 11/10 systems due to failed login attempts or multiple system shutdowns. Users are frustrated because there is nothing they can do about it. Users may forget their PIN code to log into the system, or experience lags when using or installing software, and the system may be forced to shut down multiple times. Therefore, we have compiled a list of the best available solutions that will undoubtedly help consumers solve this problem. To learn more, continue reading this article. Note: Before doing this, make sure you have your system's administrator credentials and Microsoft account password to reset your PIN. If not, wait an hour or so and try with the correct PIN

Introduction to Go language development tools: a list of essential tools Introduction to Go language development tools: a list of essential tools Mar 29, 2024 pm 01:06 PM

Title: Introduction to Go language development tools: List of essential tools In the development process of Go language, using appropriate development tools can improve development efficiency and code quality. This article will introduce several essential tools commonly used in Go language development, and attach specific code examples to allow readers to understand their usage and functions more intuitively. 1.VisualStudioCodeVisualStudioCode is a lightweight and powerful cross-platform development tool with rich plug-ins and functions.

How to disable USB interface in Windows 11? How to disable USB interface in Windows 11? May 08, 2023 am 08:07 AM

USB port is one of the very useful connectivity options in your computer that helps you connect your pen drive or USB drive to your PC and get your work done within minutes. This is one of the best ways to transfer data back and forth without requiring an active internet connection. However, sometimes you may realize that the USB ports on your system are being misused. For example, anyone can gain unauthorized access to your PC, connect a pen drive and steal data. This is the whole reason why, you may have noticed that in some organizations and educational institutions, the use of USB ports is prohibited. In this case, the administrator blocks access to the USB port so anyone trying to use the USB drive cannot do so. So if you want to disable Win

See all articles