.net FCK 配置

FCK

FCKeditor.Net_2.6.3   FCKeditor_2.6.4.zip  没有的自己下载
(1)
FCKeditor.Net_2.6.3/FileBrowser  删除try{document.domain=d;}catch (e){break;}
FCKeditor.Net_2.6.3/bin/Release/2.0 里面的 DLL文件重新生成
(2)
FCKeditor_2.6.6/fckeditor/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 true;
 }
返回真,这里 如果不想网站被黑的话 需要判断一下,即 if(条件){return true;} else{return false;}
(3)
UserFilesPath = "/userfiles/"; 上传图片默认路径  不变
(4)fckconfig.js
FCKConfig.DefaultLanguage= 'zh-cn' ; 修改这样子

var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
(5)
WEB.XML配置文件
 <!--FCK配置-->
 <appSettings>
  <add key="FCKeditor:BasePath" value="~/AdminPannel/fckeditor/"/>
<add key="FCKeditor:UserFilesPath" value="~/AdminPannel/Files/" />
 </appSettings>

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值