惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - 虚空境界

当WEB站点应用程序池标识为ApplicationPoolIdentity,出现运行错误时的解决方法 sql表设计器的几个默认值 easyui中tree型控件不正常显示的处理方法 Ajax.ActionLink与Ajax.BeginForm使用场所的思考 mvc中ajax.beginform一次提交重复Post两次的问题解决 JQuery EasyUI弹出对话框解决Asp.net服务器控件无法执行后台代码的方法(转) ASP.NET验证控件RegularExpressionValidator的常见表达式 后台动态设置前台标签内容和属性(转自http://www.wzsky.net/html/Program/net/26171.html) ASP.NET中使用 Response.Write("<script>alert('****');</script>");后CSS界面发生变化的解决方法 (经验证) silverlight控件如何自适应 “System.ServiceModel.DomainServices.Client.DomainOperationException:查询"XXX"load操作失败,远程服务器返回了错误:NoFound.……”解决方法 按规定长度显示指定绑定字段的内容 asp.net中使用ckfinder2选择图片并返回图片文件的路径的代码 WEB.CONFIG资料收集 ckeeditor和ckfinder在asp.net中的使用 用户体验的网站首页设计的准则 开发播放器中所学/用到的知识 关于使用IDE制作样式表后不能正常显示的问题 域用户组策略禁用QQ等软件 域用户组策略设定IE主页
CKEditor3.6.1+CKFinder2.0.2结合 打造"帅"的编辑器 For .Net
虚空境界 · 2011-08-19 · via 博客园 - 虚空境界

原文见曾祥展的博客,做了一些细化和删改。

1,将ckeditor解压打开,打开_Samples,将ckeditor文件夹拷贝项目中的根目

录下

2,将ckfinder解压,ckfinder文件夹拷贝项目中的根目录下,把_sample,

_source,help文件夹删除掉,(注:没有用)

3.添加CKFinder.dll和CKEditor.NET.dll引用

4.在工具箱中添加CKEditorControl工具

5.将CKEditorControl工具拖入到aps.net页面中,并在页面的后台代码中加入

using CKFinder引用。并写入如下代码:
 protected void Page_Load(object sender, EventArgs e)
        {
            CKFinder.FileBrowser _filebowser = new FileBrowser();
            _filebowser.SetupCKEditor(this.CKEditorControl1);

//CKEditor控件内就可使用CKFinder了
            //_filebowser.BasePath = "/ckfinder/";
        }

6.修改ckfinder/config.ascx 文件内容:
public override bool CheckAuthentication()
{
 //return false; 改这里
   // return HttpContext.Current.User.Identity.IsAuthenticated; 更安全
    return true;
}

SetConfig():

 BaseUrl = "~/ckfinder/userfiles/"; //此处设定客户端上传的文件

储存在服务器的哪个文件夹内。如:BaseUrl = "~/uploadfiles/";

7.使用CKEditorControl1.Text获取编辑器内容