码迷,mamicode.com
首页 > Web开发 > 详细

ckeditor_4.5.10_full,ckfinder_aspnet_2.6.2,插件使用

时间:2016-09-30 14:53:28      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:

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 设置

 

ckeditor_4.5.10_full,ckfinder_aspnet_2.6.2,插件使用

标签:

原文地址:http://www.cnblogs.com/renzhituteng/p/5923431.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!