Use Baidu UMeditor Rich Text Editor java, umeditorjava
Use Baidu UMeditor Rich Text Editor java
1. Introduction
UMeditor is a lightweight Rich Text Editor.UEditor is much smaller. It is an online Rich Text Editor tailored to meet the needs of portal websites for simple post boxes or reply boxes.
2. Download
Address: http://ueditor.baidu.com/website/umeditor.html
I click the Download button in the official website, half a day did not respond, and then went to github down a copy, github address: https://github.com/fex-team/umeditor/releases
3. Run the demo
①. Prepare before running
Decompress the package first.
A new project is created in eclipse.
Right-click WebContent
Import the downloaded file package, and you will be OK.
②. Try it
Wrap the <script> tag in the index.html file with form
Then click a wave and a null value is printed unexpectedly.
Tried several times can not, I feel the parameter name may be wrong, Baidu on the internet, refer to a brother's blog: http://blog.csdn.net/u014427391/article/details/51113573,
Modify the value parameter in the jsp/getContent. jsp file. Yes.
Display result:
Console printing:
4. Configuration File
You can set some parameters in this file. Each line has annotations.
One piece of configuration is explained here
Parameters
ImageUrl: Where is the file you want to call to upload images?
ImagePath: where does the image you uploaded exist? It will create a sub-folder for you.
ImageFiledName: key Value