Objective:
Today, the company is doing CMS in the editor, Ueditor is a very good choice, very powerful, but today encountered a very difficult problem: the online management of the image page can not display my previous uploaded pictures, debugging an afternoon finally solved the problem, write this post hope to help others. End of crap.
To use this plugin you need to do these steps:
1. Download the UM or UE address: http://ueditor.baidu.com/website/index.html Here is the two version of the Baidu editor, a few features, a more functional, detailed introduction to see the official explanation.
2. Create a Web project, this editor needs to rely on server processing, there is a problem in the dependencies of these server jar, I use the 1.4.3 version, Ueditor-1.1.1.jar picture path problem. The problem is probably this: the final path of the picture is displayed as: e://tomcat8/webapps/xxx/ueditor/.... This way, of course, the page cannot display photos. I'll put the download link for this jar on my web drive later.
3. Create a JSP page in your Webroot (your Web application directory) directory or HTML to introduce the relevant resource file, write the start JS. http://fex.baidu.com/ueditor/, this is an example.
4. Start your project, there is a problem here, if you do not configure the following path in the project, you will not find the corresponding request path.
${url}: Http://127.0.0.1:8080/ueditorDemo
Window. Ueditor_home_url = "${url}/public/ueditor/";
Window. Base_url = ' ${url} ';
5. Use Bai.
Jar:http://pan.baidu.com/s/1mg5reag
Ps:
If you have any questions, please feel free to email me [email protected] and I will get back to you as soon as possible.
Pure hand Reproduction Please specify the source: Http://i.cnblogs.com/EditPosts.aspx?opt=1
[Baidu Editor] Ueditor managing pictures online