有关FCKeditor在asp.net 2.0下的配置问题.

本文详细介绍了FCKeditor V2.4.3在ASP.NET环境下的安装配置过程,包括所需DLL文件的获取与放置,以及解决图片上传问题的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天配置了一下fckeditor,将这一过程与大家分享.
fckeditor相关网址:
官方地址: http://www.fckeditor.net/
下载地址: http://www.fckeditor.net/download/default.html
演示地址: http://www.fckeditor.net/demo/default.html
 首先下载FCKeditor V2.4.3,下载地址: http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=75845;这个压缩包里并不包含ASP.NET要用到的DLL控件,所以还要下载另外一个压缩包,下载地址: http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=137125。把第一个文件解压到WEB根目录,默认文件夹名为:FCKeditor;再把第二个包解压,里面包含了源代码,如果你想自己再次开发,可以双击FredCK.FCKeditorV2.csproj文件,打开VS.NET进行修改,所用的语言是C#;不想修改的话,直接把bin\Release下面的FredCK.FCKeditorV2.DLL文件拷到WEB目录的bin下面。
  到这一步,已经可以用了,但是上传图片会出错.我下载的这个版本的 默认上传的页面时php写的,所以需要修改config.js这个文件
修改如下:
       打开fckeditor/fckconfig.js  
  找到中间的:  
  var   _FileBrowserLanguage   =   'aspx'   ;   //   asp   |   aspx   |   cfm   |   lasso   |   perl   |   php   |   py  
  var   _QuickUploadLanguage   =   'aspx'   ;   //   asp   |   aspx   |   cfm   |   lasso   |   php  
   但 到这一步 还是不行 提示”this connector is disabled Please check the"editor/filemanager/connectors/aspx/config.aspx“这样的错误
解决方法:

打开editor/filemanager/connectors/aspx/config.ascx修改CheckAuthentication()方法,返回true

C# code

private bool CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
//
//        return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs in your system.

        return true;
}


到这里 就可以正常使用这个功能强大的编辑器了.呵呵~
有兴趣的可以再看看这篇文章 http://dsclub.cnblogs.com/archive/2006/05/06/392337.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值