1、解压FCKeditor_2.2.zip,(FCKeditor主文件),将FCKeditor目录复制到网站根目录下,
2、将FCKeditor-2.3/web/WEB-INF/lib目录下文件复制到自已项目的lib文件夹中
jsp:--------------------------------------------------------------------------------
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>
<%@page language="Java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>demo</title>
<link type="text/css" rel="stylesheet" href="../ckeditor/_samples/sample.css" />
</head>
<body>
<form action="sample_posteddata.jsp" method="post">
<p>
<label for="editor1">
Editor 1:</label>
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
</p>
<p>
<input type="submit" value="Submit"/>
</p>
</form>
<ckeditor:replace replace="editor1" basePath="./ckeditor/" />
</body>
</html>
--------------------sample_posteddata.jsp-------------------------------------
<% request.setCharacterEncoding("utf-8");
String id = request.getParameter("editor1") ;//通知id
System.out.print(id);
%>
2、将FCKeditor-2.3/web/WEB-INF/lib目录下文件复制到自已项目的lib文件夹中
jsp:--------------------------------------------------------------------------------
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>
<%@page language="Java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>demo</title>
<link type="text/css" rel="stylesheet" href="../ckeditor/_samples/sample.css" />
</head>
<body>
<form action="sample_posteddata.jsp" method="post">
<p>
<label for="editor1">
Editor 1:</label>
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
</p>
<p>
<input type="submit" value="Submit"/>
</p>
</form>
<ckeditor:replace replace="editor1" basePath="./ckeditor/" />
</body>
</html>
--------------------sample_posteddata.jsp-------------------------------------
<% request.setCharacterEncoding("utf-8");
String id = request.getParameter("editor1") ;//通知id
System.out.print(id);
%>