首先下载xheditor-1.1.13.zip包 在这个链接可下载到 http://download.youkuaiyun.com/detail/yy19900811/4990637
解压该包获得xheditor-1.1.13文件夹
将xheditor-1.1.13文件夹下的xheditor_emot、xheditor_plugins和xheditor_skin、jquery四个文件夹复制到你所需要在线编辑器的工程目录下(与WEB-INF同级)
然后在你的jsp页面中编写代码
注意textarea标签中加入: class="xheditor"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Xh_editor</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/xheditor-1.1.13-zh-cn.min.js"></script>
</head>
<body>
<form action="editor" method="post">
<textarea name="editor" class="xheditor" rows="12" cols="80" style="width: 80%"></textarea><br/>
<input type="submit" value="提交">
</form>
</body>
</html>