jsp中如何使⽤Ueditor
在jsp页⾯中类似word编辑器操作textarea
使⽤步骤:
step2、jsp页⾯引⼊Ueditor的js⽂件
<script type="text/javascript" src="fig.js"></script>(配置⽂件)
<script type="text/javascript" src="ueditor/ueditor.all.js"></script>(编辑器源码⽂件)
step3、新建textarea标签,如下所⽰
<textarea id="container" name="container" > </textarea> step4、实例化编辑器即把textarea替换为Ueditor编辑器jsp使用el表达式
<script type="text/javascript">
var ue = UE.getEditor("container");
setTimeout(function(){Command('drafts')},2000);//⾃动保存
</script>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。