FCKeditor.NET 2.5使用说明

来源:互联网 发布:淘宝网碎花连衣裙 编辑:程序博客网 时间:2024/05/17 23:40

下载FCKeditor.Net_2.5.zip和FCKeditor_2.5.1.zip

1.添加对FredCK.FCKeditorV2.dll的引用

2.将FCKeditor_2.5.1.zip中的FCKEditor拷贝到某处

3.Web.config的修改  <appSettings>    <add key="FCKeditor:BasePath" value="~/fckeditor/"/> //FCKEditor的路径    <add key="FCKeditor:UserFilesPath" value="~/Files/" /> // 上传文件夹的路径  </appSettings>

4.修改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;//原来是return false; }

5.修改fckeditor/fckconfig.jsvar _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | pyvar _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py

原创粉丝点击