百度富文本编辑器 ueditor

官网下载 uditor jsp版本插件

在html页面中引入 ueditor.config.js ueditor.all.min.js

 

展示:

<div id="editor" style="height:360px">

 

</div>

 

需要加载编辑器

var ue = UE.getEditor('editor'); 在页面进来就加载

这个editor要和上面 div 的id 相同

 

取里面的值

var text = ue.getContent();

posted @ 2021-05-08 23:09  neoQVQ  阅读(99)  评论(0)    收藏  举报