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>