下载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.js var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py