在你所需要在线编辑器的工程目录下,导入xheditor_emot、xheditor_plugins和xheditor_skin、jquery四个文件夹,然后在textarea标签中加入: class="xheditor"
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<script type="text/javascript" src="xheditor/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="xheditor/xheditor-1.1.13-zh-cn.min.js"></script>
</head>
<body>
<center>
<textarea name="content" class="xheditor" rows="20" cols="100">test</textarea>
</center>
</body>
</html>