Steps for blog wordpress to integrate Baidu UEditor

Source: Internet
Author: User

Ueditor official website: http://ueditor.baidu.com/website/

Baidu has written a wp-ueditor.zip plug-in package with instructions, but it is not very detailed, so I decided to repeat it in detail.

Installation steps:

1. Download the wp-ueditor.zip file

2. Upload and enable the plugin in the wp background

3. Enable the plug-in, and then you can see that there are two editing windows on the write page.

In this case, do not worry. We are modifying the function by some means so that the default editor of wp is UEditor.

I. Modify the URL variable in UEditor/editor_config.js by editing the ueditor plug-in to an absolute or relative path.

URL = window. UEDITOR_HOME_URL | tmp. substr (0, tmp. lastIndexOf ("/") + 1 ). replace ("_ examples/", "wp-content/plugins/wp-ueditor /"). replace ("website/", "wp-content/plugins/wp-ueditor /");

II. Download ueditor.zip unzip, the root directory will see a ue3.3.2-edit-form-advanced.php and ue3.3.1-edit-form-advanced.php, ue3.3.1-prefix indicates a corresponding version of wp, but we generally choose the highest version, change it to edit-form-advanced.php

III. Back up the edit-form-advanced.php in the wp-admin folder

IV. Upload the modified name file in II to the wp-admin folder.

In this way, the process of replacing the default editor in wp with UEditor is over. For the use of the editor, you can view the UEditor function introduction.

Btw. I found that there is still a problem, that is, when switching the editor focus, the cursor will jump to the very beginning, I hope Baidu can handle it.

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.