富文本编辑器

1. 下载插件

http://ueditor.baidu.com/website/download.html

本人下载 ueditor1_4_3_3-utf8-jsp 版本。

2. 页面添加加载代码:

<!-- 加载编辑器的容器 -->
<script id="container" name="bugDesc" type="text/plain" th:text="${bug.bugDesc}">
-- bug的详细描述 --
</script>
<!-- 配置文件 -->
<script type="text/javascript" th:src="@{/static/ueditor1_4_3_3-utf8-jsp/utf8-jsp/ueditor.config.js}"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" th:src="@{/static/ueditor1_4_3_3-utf8-jsp/utf8-jsp/ueditor.all.js}"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
var ue = UE.getEditor('container',{
autoHight:false
});
</script>

详细信息查看文档:http://fex.baidu.com/ueditor/ 

原文地址:https://www.cnblogs.com/wangzhaoshuang/p/8458839.html