本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告
 本博客在此声明所有文章均为转摘,只做资料收集使用。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:
日志总数:1304
评论数量:2242
留言数量:5
访问次数:7587525
建立时间:2006年5月29日




[TinyMCE+FCKeditor]FCKEditor在java script中的使用说明
软件技术

lhwork 发表于 2006/8/8 11:29:00

在http://www.fckeditor.net/ 下载FCKeditor 2.3 和FCKeditor.Java包 FCKeditor-2.3.jar 配置web.xml 支持FCKEditor的图片文件上传和浏览 500)this.width=500'> < servlet > 500)this.width=500'>     < servlet-name > Connector servlet-name > 500)this.width=500'>     < servlet-class > com.fredck.FCKeditor.connector.ConnectorServlet servlet-class > 500)this.width=500'>     < init-param > 500)this.width=500'>           < param-name > baseDir param-name > 500)this.width=500'>           < param-value > /uploadfiles/ param-value > 500)this.width=500'>     init-param > 500)this.width=500'>     < init-param > 500)this.width=500'>           < param-name > debug param-name > 500)this.width=500'>           < param-value > false param-value > 500)this.width=500'>      init-param > 500)this.width=500'>      < load-on-startup > 2 load-on-startup > 500)this.width=500'>     servlet > 500)this.width=500'>    < servlet > 500)this.width=500'>         < servlet-name > SimpleUploader servlet-name > 500)this.width=500'>         < servlet-class > com.fredck.FCKeditor.uploader.SimpleUploaderServlet servlet-class > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > baseDir param-name > 500)this.width=500'>             < param-value > /uploadfiles/ param-value > 500)this.width=500'>         init-param > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > debug param-name > 500)this.width=500'>             < param-value > false param-value > 500)this.width=500'>         init-param > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > enabled param-name > 500)this.width=500'>             < param-value > true param-value > 500)this.width=500'>         init-param > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > AllowedExtensionsFile param-name > 500)this.width=500'>             < param-value /> 500)this.width=500'>         init-param > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > DeniedExtensionsFile param-name > 500)this.width=500'>             < param-value > php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi|htm|html param-value > 500)this.width=500'>         init-param > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > AllowedExtensionsImage param-name > 500)this.width=500'>             < param-value > jpg|gif|jpeg|png|bmp param-value > 500)this.width=500'>         init-param > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > DeniedExtensionsImage param-name > 500)this.width=500'>             < param-value /> 500)this.width=500'>         init-param > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > AllowedExtensionsFlash param-name > 500)this.width=500'>             < param-value > swf|fla param-value > 500)this.width=500'>         init-param > 500)this.width=500'>         < init-param > 500)this.width=500'>             < param-name > DeniedExtensionsFlash param-name > 500)this.width=500'>             < param-value /> 500)this.width=500'>         init-param > 500)this.width=500'>         < load-on-startup > 1 load-on-startup > 500)this.width=500'>     servlet > 500)this.width=500'>      url-pattern -->500)this.width=500'>     < servlet-mapping > 500)this.width=500'>         < servlet-name > Connector servlet-name > 500)this.width=500'>         < url-pattern > /components/fck/editor/filemanager/browser/default/connectors/jsp/connector url-pattern > 500)this.width=500'>     servlet-mapping > 500)this.width=500'>    500)this.width=500'>     < servlet-mapping > 500)this.width=500'>         < servlet-name > SimpleUploader servlet-name > 500)this.width=500'>         < url-pattern > /components/fck/editor/filemanager/upload/simpleuploader url-pattern > 500)this.width=500'>     servlet-mapping > 500)this.width=500'>       1.3 加入FCKeditor-2.3.jar和commons-fileupload.jar     1.4 但是fckeditor的文件实在太多了,让人没来由一阵心痛,删除以下目录及文件:     1./_testcases,  /_samples,    2./editor/_source,  /editor/skins/office2003, /editor/skins/silver,/editor/filemanager/upload, /editor/filemanager/browser/default/connector     3./editor/lang 仅保留en.js,zh_cn.js     4.在/的php,py等后缀名的文件    5.删除plugin目录和dialog目录的spellcheck     1.5 将干净的fck目录复制到项目中     1.6 修改配置文件 fckconfig.js     FCKConfig.DefaultLanguage  = 'zh-cn' ;     删除spell check 相关的两处地方     修改如下 url, 使用 fckeditor servelt 来做文件上传与目录浏览: 500)this.width=500'> FCKConfig.LinkBrowserURL  =  FCKConfig.BasePath  +  500)this.width=500'> " filemanager/browser/default/browser.html?Connector=connectors/jsp/connector "  500)this.width=500'>;500)this.width=500'>FCKConfig.ImageBrowserURL  =    500)this.width=500'>FCKConfig.BasePath + " filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector "  500)this.width=500'>;500)this.width=500'>FCKConfig.FlashBrowserURL  =  FCKConfig.BasePath + " filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector "  ;500)this.width=500'>FCKConfig.LinkUploadURL  =  FCKConfig.BasePath  +  500)this.width=500'>'filemanager / upload / simpleuploader ? Type = File' ;500)this.width=500'>FCKConfig.FlashUploadURL  =  500)this.width=500'>FCKConfig.BasePath  +  'filemanager / upload / simpleuploader ? Type = Flash' 500)this.width=500'>;500)this.width=500'>FCKConfig.ImageUploadURL  =  FCKConfig.BasePath  +  'filemanager / upload / simpleuploader ? Type = Image' ;500)this.width=500'> 如果还有时间可以修理一下FCKConfig.ToolbarSets["Default"],只留下需要的功能。 在 JSP 中的使用方法 500)this.width=500'> <% @ page language = " java "   import = " com.fredck.FCKeditor.* "   %> 500)this.width=500'> <% 500)this.width=500'>FCKeditor oFCKeditor ;500)this.width=500'>oFCKeditor  =   new  FCKeditor( request,  " content "  ) ;500)this.width=500'>oFCKeditor.setBasePath(  " /cms/admin/components/fck/ "  ) ;    ---- FCK所在路径500)this.width=500'>oFCKeditor.setValue(“value” );                           ---- 文本框内的值    500)this.width=500'>out.println( oFCKeditor.create() ) ;500)this.width=500'> %> 500)this.width=500'>


阅读全文(3158) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.072 second(s), page refreshed 144764094 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号