FCKeditor2.6.4 For Asp.net3.5 总结

最近在项目中使用FCKeditor作为富文本编辑器,把使用中遇到的问题及解决办法总结下。

1)首先到http://www.fckeditor.net/download 去下载FCKeditor 2.6.4.zip和FCKeditor.NET(这个其实是asp.net控件)

2) 把FCKeditor 2.6.4.zip解压到项目的/目录或其他目录,我是放在/目录的,至于控件解压后在VS2008中的控件面板->选择项->浏览 添加FCKeditor的dll就能看见FCKeditor控件了,在需要的地方拖进去就能用。

3) 在web.conf中添加

< add key = " FCKeditor:UserFilesPath "  value = " /common/uploads "   />  

作为图片等上传路径

4)修改fckconfig.js文件,找

var _FileBrowserLanguage     =   ' php '  ;     //  asp | aspx | cfm | lasso | perl | php | py

var _QuickUploadLanguage    
=   ' php '  ;     //  asp | aspx | cfm | lasso | perl | php | py

把php改成aspx,不然点上传框的时候会报些错误,导致无法上传。

5) 修改editor\filemanager\connectors\aspx\config.ascx文件

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   false // 把这个false改成true

    }


不然会报this connector is disabled Please check

OK,到这里基本就能正常使用了。

 

转载于:https://www.cnblogs.com/raoqn/archive/2009/04/01/1427246.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值