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:
Replace
with:
The code is as follows:
4. Modify /admin/templates/pageheader.htm
Find:
The code is as follows:
Replace
with:
The code is as follows:
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:
Comment out:
The code is as follows:
The above is the entire content of this article, I hope you all like it.