FCKeditor使用.doc_第1页
FCKeditor使用.doc_第2页
FCKeditor使用.doc_第3页
FCKeditor使用.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

下载 从FCKeditor的官方站点/download上下载FCKeditor 2.3.2和FCKeditor.Java,其中FCKeditor 2.3.2是源码,FCKeditor.Java是在jsp中使用的例程。 瘦身 将FCKeditor 2.3.2解压到FCKeditor文件夹,然后删除如下文件或目录: 1、/_samples,/_testcases; 2、删除/_documentation.html,_whatsnew.html,fckeditor.afp,fckeditor.asp,fckeditor.cfc,fckeditor.cfm,fckeditor.lasso,fckeditor.php,fckeditor.pl,fckeditor.py只剩下fckconfig.js,fckeditor.js,fckstyles.xml,fcktemplates.xml,htaccess.txt,license.txt; 3、/editor/_source; 4、/editor/filemanager/browser/default/connectors; 5、/editor/filemanager/upload; 6、语言包/editor/lang中只留下en.js、zh-cn.js; 哈哈,一下子从2.5M瘦到832K,爽呀!还可以在皮肤包里/editor/skins动动脑筋,比如只留一个sliver,这个好配色。 配置 将FCKeditor的jsp中使用的例程和FCKeditor源码结合起来,解压FCKeditor.Java,将解压文件夹中web目录下的所有文件拷贝到FCKeditor目录中,这样在FCKeditor目录多了两个目录: _samples index.jsp sample.css sampleslist.jsp jsp sample01.jsp sample02.jsp sample03.jsp sample04.jsp sample05.jsp sample06.config.js sample06.jsp sample07.jsp sampleposteddata.jsp WEB-INF web.xml lib FCKeditor-2.3.jar commons-fileupload.jar 看一下web.xml文件,里面增加了文件浏览和文件上传得servlet。 l 修改文件FCKeditor/fckconfig.js 1、 修改属性 中文:FCKConfig.DefaultLanguage= zh-cn ; 皮肤:FCKConfig.SkinPath = FCKConfig.BasePath + skins/default/ ; 2、 使用servlet做文件浏览和上传 参考/Developer%27s_Guide/Integration/Java /browser FCKConfig.LinkBrowserURL = FCKConfig.BasePath + filemanager/browser/default/browser.html?Connector=connectors/jsp/connector ; FCKConfig.ImageBrowserURL = FCKConfig.BasePath + filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector ; FCKConfig.FlashBrowserURL = FCKConfig.BasePath + filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector ; /upload FCKConfig.LinkUploadURL = FCKConfig.BasePath + filemanager/upload/simpleuploader?Type=File ; FCKConfig.FlashUploadURL = FCKConfig.BasePath + filemanager/upload/simpleuploader?Type=Flash ; FCKConfig.ImageUploadURL = FCKConfig.BasePath + filemanager/upload/simpleuploader?Type=Image ; l 修改web.xml增加FCKeditor的taglib 从FCKeditor.Java解压目录/src目录下拷贝FCKeditor.tld文件到WEB-INF目录下,在web.xml文件中增加: /WEB-INF/FCKeditor.tld /WEB-INF/FCKeditor.tld 使用 在 jsp 页面中作如下调用(具体如何使用可以看 FCKeditor.tld定义 ): . . This is FCKeditor demo! . 运行例程 将我们修改了半天的整个 FCKeditor目录拷贝到tomcat5.0.28(或其他

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论