在asp.net中配置并使用CKEdit

来源:互联网 发布:淘宝c店没有流量咋办 编辑:程序博客网 时间:2024/06/05 01:16

如果我们要在asp.net中使用CKEdit第三方编辑器:

1.我们先要从官方网站CKEdit下载地址上下载CKEditor 3.x 和CKEditor for ASP.NET control;

2.将CKEdit for ASP.NET Control中bin\Release\目录下的CKEditor.NET.dll文件,利用add reference引用到项目中,当然你也可以将该dll文件复制到项目的bin文件夹下;

3.复制CKEdit 3.x下的ckeditor文件夹到你的项目路径下

4.在你需要使用ckeditor的页面上注册该控件

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

5.插入ckeditor控件到你的页面中,这个和asp.net的服务器控件操作是类似的。

<CKEditor:CKEditorControl ID="CKEditor1" runat="server"></CKEditor:CKEditorControl>

以上介绍的是如何在asp.net中引用CKEditor控件,希望对各位有所帮助。

原创粉丝点击