使用HTML的editor:
创建xheditor,然后在jsp页面中添加:
导入:
<script type="text/javascript" src="<%=request.getContextPath()%>/xheditor/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript"src="<%=request.getContextPath()%>/xheditor/xheditor-1.1.14-zh-cn.min.js"></script>
添加script的脚本:
先<td colspan="2">
<textarea rows="30" cols="130"id="content" name="content"></textarea>
</td>
之后添加,<script type="text/javascript">
$(function(){
$("#content").xheditor({tools:"full"});
});
</script>
效果: