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.