1,在本地时,如果有web这个网站,在web.config里面需要配置为
<add key="FCKeditor:BasePath" value="/Web/fckeditor/"/>
<add key="FCKeditor:UserFilesPath" value="/Web/UpLoad/"/>
在发布网站之后呢,需要把这个相应的配置改为
<add key="FCKeditor:BasePath" value="/fckeditor/"/>
<add key="FCKeditor:UserFilesPath" value="/UpLoad/"/>
原因:因为在发布之前,有web这样一个网站,路径前面会有一个/web/。而发布之后,是在/目录下面发布的,这个时候需要去掉/web。否则会报FCKEditor无法找到的错误。
2,允许上传文件 需要将\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;
}
3,在上传文件图片的时候,有可能会弹出一个xml发送出错的报告,是由于没有安装xml的一个插件,安装好了就可以了!