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

推荐订阅源

V
Visual Studio Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
MyScale Blog
MyScale Blog
H
Help Net Security
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏

博客园 - 虚空境界

当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结合 打造"帅"的编辑...
虚空境界 · 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获取编辑器内容