Rich text box Ueditor jquery ecplise

This article summarizes the use of Ueditor on the Internet. The reference article https://zhidao.baidu.com/question/572916963.html uses jsp

1. Ueditor download http://ueditor.baidu.com/website/download.html (download the corresponding version of UEditor)

2. After decompression, the file directory is as follows

3. Put the jar package in lib under jsp under lib.

4. Copy the entire directory to webApp or web-content.

5. Introduce ueditor.all.min.js and ueditor.config.js and zh-cn.js under zh-cn in the lang folder.

6. Add the following code to jsp

<div id="editor" style="height:200px;width:500px;">      
<script type="text/javascript" charset="utf-8">      
	var ue = UE.getEditor ('editor');
	ue.ready(function() {
		ue.setContent("I added content myself!", false);
	})
</script>   
</div>
For the use of other methods in ueditor, you can refer to https://zhidao.baidu.com/question/572916963.html


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325484235&siteId=291194637