最新CKEditor(FCKEditor) 3.6配置方法

你还在使用2.X吗?CKEditor 3.6界面效果很漂亮,功能强大,配置也简单,下面我来介绍一下配置方法:
1.首先到http://ckeditor.com/download官方网站下载最新的CKEditor ,目前的最新版是3.61,下载 CKEditor for ASP.NET。下载完成后,解压压缩包,可以看到提供的例子和bin目录,还有_Samples文件夹。
2.打开你的项目,把_Samples文件夹下的ckeditor文件夹copy到你的项目里面,然后添加引用,寻找到 bin目录下的Release文件夹下的CKEditor.NET.dll,添加引用。
3.在配置文件中添加
        <system.web>
  <pages>
   <controls>
    <add tagPrefix="CKEditor" assembly="CKEditor.NET" namespace="CKEditor.NET"/>
   </controls>
  </pages>
 </system.web>
3.在应用到ckeditor的页面引入
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
4.在需要用到ckeditor的地方加入
<CKEditor:CKEditorControl ID="CKEditor1" runat="server"></CKEditor:CKEditorControl>
改变颜色:
 <CKEditor:CKEditorControl ID="dataContent" runat="server" UIColor="#4e72b8" Language="de" EnterMode="BR">
 </CKEditor:CKEditorControl>
修改 UIColor的颜色代码值就可以自定义控件的颜色,效果很好看!
 If you want use the CKEditor for ASP.NET Control, you must add references to the project and register the control.
 If you only intend to use the control on a single page, you can add a Register section to its source code:
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
 If you intend to use the control on multiple pages, you can add the Register section in web.config. Insert the following code into the <system.web><pages><controls> section:
<add tagPrefix="CKEditor" assembly="CKEditor.NET" namespace="CKEditor.NET"/>
 To insert the CKEditor for ASP.NET Control into a web page, use the following code:
<CKEditor:CKEditorControl ID="CKEditor1" runat="server"></CKEditor:CKEditorControl>

转载于:https://www.cnblogs.com/px7034/archive/2011/11/28/2266411.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值