ckeditor_4.5.10_full,ckfinder_aspnet_2.6.2,插件使用
1、ckfinder文件上傳的權限:
public override 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 on your system.
?
?
//return false; 這里修改你自己權限系統里邊的用戶登錄驗證
return (NopContext.Current.User != null && NopContext.Current.User.CustomerId > 0);
}
2、文件上傳的路徑,可以添加到個人的用戶文件夾
BaseUrl = "/files/userfiles/" + NopContext.Current.User.CustomerId.ToString() + "/";
3、圖片上傳的路徑更改
ckfinder_aspnet_2.6.2 去plugins /?imageresize 設置
?
轉載于:https://www.cnblogs.com/renzhituteng/p/5923431.html
總結
以上是生活随笔為你收集整理的ckeditor_4.5.10_full,ckfinder_aspnet_2.6.2,插件使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 正则表达式——转载
- 下一篇: AppServ安装到一半卡住的问题