ueditor的mini版本的jsp版本的使用方法
阿新 • • 發佈:2019-01-11
1.引入ueditor的檔案
2.引入jar包
3.網頁head中
引入jquery,引入umeditor.config.js,引入umeditor.js
<script type="text/javascript" charset="utf-8" src="script/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<%=path%>/ueditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="<%=path%>/ueditor/umeditor.js"></script>
<link rel="stylesheet" type="text/css" href="<%=path%>/ueditor/themes/default/css/umeditor.min.css" />
4.網頁body中
<textarea name="content" id="editor" style="width: 800px; height: 500px;"></textarea>
<script type="text/javascript">
var editor = UM.getEditor('editor');
</script>