在ASP.NET项目中使用CKEditor
来源:互联网 发布:瓷砖设计的软件 编辑:程序博客网 时间:2024/05/22 08:15
CKEditor是什么
CKEidtor是一个在线富文本编辑器,可以将让用户所见即所得的获得编辑在线文本,编辑器或自动将用户编辑的文字格式转换成html代码。
在ASP.NET工程中添加CKEditor插件
1.下载插件:可以到CKEditor官方网站下载 CKEditor for ASP.NET Control.网址:http://ckeditor.com/download 解压后得到如下图2.压缩包找到其中\bin\Release下的CKEditor.NET.dll和CKEditor.NET.pdb考到你的工程文件夹的Web/bin/文件下
3.在工程中右击Web工程添加引用(AddReference)在Browse中添加刚才靠过来的CKEditor.NET.dll文件
4.将压缩包中的_Sample的ckeditor文件夹拷贝到工程文件下。
5.在aspx网页中注册CKEditor插件:
第一种一种方式是在单个网页的顶部添加下面的语句如果要在单个网页中使用该插件则在该网页到最上面添加
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
第二种方式是在整个工程的Web.config文件的
<
system.web
><
pages
><
controls
>
中添加
<add tagPrefix="CKEditor" assembly="CKEditor.NET" namespace="CKEditor.NET"/>
6.然后在网页中需要使用到插件的地方添加
<CKEditor:CKEditorControl ID="id" BasePath="~/ckeditor" runat="server"></CKEditor:CKEditorControl>
7.效果图 下面部分是我用laber接受从CKEditor.Text获得的内容
0 0
- 在ASP.NET项目中使用CKEditor
- 在ASP.NET项目中使用CKEditor
- 在ASP.NET项目中使用CKEditor
- CKEditor和CKFinder在ASP.NET项目中安装,配置和使用详解
- ASP.NET项目中使用CKEditor +CKFinder 实现上传图片
- ASP.NET中CKEditor的使用
- ckeditor在asp.net mvc中发布问题解决
- CKEditor在asp.net环境下的使用一例
- ckeditor和ckfinder 在ASP.NET 中的使用
- CKEditor在asp.net环境下的使用一例
- CKEditor在asp.net上使用的图例详解
- 在线html编辑器:Asp.net 在CKEditor中使用CKFinder(CKEditor3.1.2集合CKFinder2.1.1),完美组合
- CKeditor在ASP.NET中的使用方法
- CKeditor在ASP.NET中的使用方法
- 在 ASP.NET MVC 项目中使用 WebForm
- 在 ASP.NET MVC 项目中使用 WebForm
- 在 ASP.NET MVC 项目中使用 WebForm
- 在 ASP.NET MVC 项目中使用 WebForm
- C#获取当前应用程序所在路径及环境变量
- 十七、Android无法访问本地服务器(localhost)的解决方案
- Android客户端简单的聊天程序实现
- 银行卡四位加空格
- hdu1575 Tr A
- 在ASP.NET项目中使用CKEditor
- JdbcTemplate的用法
- OCP-1Z0-051 补充题库 第1题 TRUNCATE命令的使用
- 使用sockets:从新闻组中获取文章(一)
- struts2在前台通过property获取属性值某些字符转义问题
- hive使用案例
- 内存对齐的规则以及作用
- php实战第九天
- java基础加强_类加载器