下載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