1.建立项目:tomcat/webapps/TestFCKeditor.
2.将FCKeditor2.2解压缩,将整个目录FCKeditor复制到项目的根目录下,
目录结构为:tomcat/webapps/TestFCKeditor/FCKeditor
然后将FCKeditor-2.3.zip(java)压缩包中\web\WEB-INF\lib\目录下的两个
(commons-fileupload.jar和FCKeditor-2.3.jar)jar文件拷到项目的\WEB-INF\lib\目录下。把其中的src目录下的FCKeditor.tld文件copy到TestFCKedit/FCKeitor/WEB-INF/下
我好像没有也能做好的?
3,
新建一个.jsp文件<?xml version="1.0" encoding="UTF-8" ?>
4.
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" import="net.fckeditor.*" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<%--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
* @version: $Id: sample01.jsp 2167 2008-07-03 21:33:15Z mosipov $
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FCKeditor - JSP Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<link href="../sample.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="../fckeditor.gif"
type="image/x-icon" />
<script type="text/javascript">
function FCKeditor_OnComplete(editorInstance) {
window.status = editorInstance.Description;
}
</script>
</head>
<%
FCKeditor fckEditor = new FCKeditor(request, "EditorDefault");
%>
<body>
<h1>FCKeditor - JSP - Sample 1</h1>
<p>This sample displays a normal HTML form with an FCKeditor with
full features enabled.</p>
<p>Basic FCKeditor informations:</p>
<ul>
<li><FCK:check command="CompatibleBrowser" /></li>
<li><FCK:check command="FileBrowsing" /></li>
<li><FCK:check command="FileUpload" /></li>
</ul>
<hr />
<form action="sampleposteddata.jsp" method="post" target="_blank">
<%
fckEditor.setValue("This is some <strong>sample text</strong>. You are using <a href=\"http://www.fckeditor.net\">FCKeditor</a>.");
out.println(fckEditor);
%>
<br />
<input type="submit" value="Submit" /></form>
</body>
</html>
4、获取值 getParameter("
EditorDefault");
分享到:
相关推荐
FckEditor在线编辑器FckEditor在线编辑器FckEditor在线编辑器
FCKeditor编辑器hwp363FCKeditor编辑器hwp363FCKeditor编辑器hwp363 FCKeditor编辑器hwp363FCKeditor编辑器hwp363 FCKeditor编辑器hwp363
fckeditor在线编辑器,可以直接使用
在SSH项目中整合FCKeditor文本编辑器技术
FCKEditor 在线编辑器,很好用的在线编辑器,大家都应该知道吧
FCKeditor 文本编辑器 编程 网站 计算机
PHP版经过精简的FCKEDITOR在线编辑器,希望能有用
兼容目前的浏览器 里面包含FCKeditor编辑器和控件 一、集成方法 FCKeditor应用在ASP.NET上,需要两组文件,一组是FCKeditor本身,另一个是用于ASP.NET的FCKeditor控件(分为1.1和2.0两个版本,这里使用2.0版本)。 ...
fckeditor编辑器文件及dll打包 fckeditor编辑器文件及dll打包 fckeditor编辑器文件及dll打包
FCKeditor2.4.2编辑器 For Asp.net多语言版
FCKeditor网络编辑器FCKeditor网络编辑器FCKeditor网络编辑器
fckeditor 用于web页面开发的文档编辑插件,非常方便使用。
FCKeditor在线编辑器教程
.NET版FCKeditor在线编辑器,含demo
Asp.Net FCKeditor编辑器的用法详解
这是我从官方下载源码进行整合后的fckeditor编辑器,里面整合了qq2008的表情,能很好的整合到你的项目中去
fckeditor在线编辑器
fckEditor 编辑器源码fckEditor 编辑器源码fckEditor 编辑器源码fckEditor 编辑器源码fckEditor 编辑器源码fckEditor 编辑器源码