http://rainlife.iteye.com/blog/179396
注意,新版本似乎更改了包,现提供如下:
我项目中加了FCKeditor. 就这样简单配置的,你可以参考一下.
使用的版本:
FCKeditor_2.6.3
fckeditor-java-2.4-bin
一,项目中增加以下包:(特别留意项目中原有的包是否有跟以下包有冲突,例如commons-fileupload包。我原项目中有个1.0的包,加进这个1.2的包就冲突了,困扰了我好久,一开始没留意到包冲突的问题。)
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
fckeditor-java-core-2.4.1.jar
java-core-2.4.1.jar
slf4j-api-1.5.2.jar
slf4j-simple-1.5.2.jar
二,配置web.xml:
<servlet><servlet-name>Connector </servlet-name><servlet-class>net.fckeditor.connector.ConnectorServlet </servlet-class><load-on-startup>1 </load-on-startup></servlet><servlet-mapping><servlet-name>Connector </servlet-name><url-pattern>/fckeditor/editor/filemanager/connectors/* </url-pattern></servlet-mapping>
三,在src目录下新建fckeditor.properties文件,主要配置如下:
connector.userFilesPath=/UpLoad/res //设置上传文件路径。默认是WebRoot目录下userfiles.
connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl
四,将fckeditor文件夹复制到WebRoot目录下。
五,调用页面配置:
1),引入fckeditor.js文件: <script type="text/javascript" src="../fckeditor/fckeditor.js"> </script>
2),建立textarea标签,普通html或struts标签均可,我使用struts标签,例如:
3),页面中加入以下js,用fckecitor取代textarea:如果是普通html标签,new FCKeditor("这里则写name属性")。
<script type="text/javascript">
var sBasePath = "../fckeditor/";
var oFCKeditor = new FCKeditor('FCKeditor1') ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ReplaceTextarea() ;
</script>
分享到:
相关推荐
FCKEditor使用说明英文 java字体编辑器的英文配置说明
fckeditor使用说明书中文版fckeditor使用说明书中文版
在线编辑器FCKeditor使用说明与案例代码
NULL 博文链接:https://1035054540-qq-com.iteye.com/blog/1547593
FCKeditor,详细的在JSP中使用Fckeditor,配置等等。
FCKeditor2.6.4使用说明 使用FCKeditor的人可以下来看看噢~
FCKeditor中文使用手册,本手册由建站三人行站长(www.zengl.com)提供的翻译。帮助程序员能够快速掌握fckeditor在线编辑器的使用。
在公告管理开发方面,FCKeditor一直是用户喜欢的一款第三方插件 但是新手在使用过程中会出现这样或者那样的问题 本文档旨在帮助新手学会使用Fckeditor,希望对大家的学习有所帮助
FckEditor是HTML编辑器,里面有使用说明
fckeditor 编辑器,有使用说明,一款强大的网页编辑器,支持上传附件等
7 使用FCKeditor的API 26 7.1 获得FCKeditor的实例 26 7.1.1 获得当前页FCKeditor实例 26 7.1.2 从FCKeditor的弹出窗口中获得FCKeditor实例 26 7.1.3 从框架页面的子框架中获得其它子框架的FCKeditor实例 26 7.1.4 ...
FCKeditor控件和控件的使用说明,以及如何js判断FCKeditor内容是否为空
这是最新的FCKeditor 名为CKeditor 3.0.1 是官方的文件,但在官方的下载包中没有使用和配置说明,这里面加上了配置说明,是我自己整合的希望对大家有用。
Fckeditor 2.6.3/2.6.4的JAR包及使用 说明文档 内容其全 希望能帮到正在使用或将要使用的同学们
//第二步:使用种子初始化随机数发生器 srand($seed); //第三步:生成指定范围内的随机数 $random =rand(1,10000); $filename = date("dHis", time()).$random.'.'.$prefix; return $filename; } 2.[204行]...
Fckeditor详细开发文档,适合学习JSP的开发人员使用。
fckeditor文件及使用配置说明 O(∩_∩)O~
FckEditor中文配置手册详细说明,比较详细
FCKeditor上传图片 FCKeditor配置 FCKeditor在jsp中使用 ,加载到myeclipse 中就可以跑起来,源码很清晰