Today is the next day, I woke up in the morning to try to achieve the use of Umeditor text editor to add pictures, get a day, finally finished! In fact, it should have been done, but I did not import jar package, so I can not implement the image upload, I am stupid enough. Now I'm going to summarize a piece of upload:
1. Download the UM editor from "Baidu Editor" official website
2. Unzip it to any location and the contents of the folder after decompression are as follows:
One of the index.html can be deleted, that is an example, if not deployed can be referenced, I was referring to this.
3. Copy this folder under your Web project
4, now is the Guide jar package, the introduction of JS, CSS files
Add a div where you need it, and add an editor to the Div.
5, to this point, the picture is completed, you can click the image to add the button to add pictures
6, as for some other due to the time relationship, did not get.
Finally, I have two questions: the first is that the picture does not know which location to upload, I can not find. The second is how UM has no attachment add button, I have no way to add attachments. The rest of me will be perfect while doing.
Next day--um editor layout and picture additions