关于 KindEditor 中.net版本的介绍及其配置

我相信,有好多的人和我一样,都会有配置FCKeditor编译器的需要,可是FCKeditor编译器的配置难度可不是一点两点。于是,我折中处理,在网上各种搜,终于给我找到了一个方法。

那就是配置KindEditor。

废话不说,直接配置
    1、直接去官网上下载最新版本的 KindEditor 。
    2、直接解压,把里面的文件一股脑的复制到web目录下。
    3、引用asp.net版本中的bin里面的dll。
    4、在head中添加js,并且做了图片上传等等的配置。具体看官网。
<head id="Head1" runat="server">
    <meta charset="utf-8" />
    <title>KindEditor ASP.NET</title>
    <link rel="stylesheet" href="themes/default/default.css" />
<link rel="stylesheet" href="plugins/code/prettify.css" />
<script charset="utf-8" src="kindeditor.js"></script>
<script charset="utf-8" src="lang/zh_CN.js"></script>
<script charset="utf-8" src="plugins/code/prettify.js"></script>
<script>
  KindEditor.ready(function(K) {
   var editor1 = K.create('#content1', {
    cssPath : 'plugins/code/prettify.css',
    uploadJson : 'asp.net/upload_json.ashx',
    fileManagerJson : 'asp.net/file_manager_json.ashx',
    allowFileManager : true,
    afterCreate : function() {
     var self = this;
     K.ctrl(document, 13, function() {
      self.sync();
      K('form[name=example]')[0].submit();
     });
     K.ctrl(self.edit.doc, 13, function() {
      self.sync();
      K('form[name=example]')[0].submit();
     });
    }
   });
   prettyPrint();
  });
</script>
</head>

5、在页面需要的地方中调用。
<textarea id="content1" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;" runat="server"></textarea>
6、在page中加个属性validateRequest=false



好了,就这么简单!!

转载于:https://www.cnblogs.com/haocc/archive/2012/04/02/2430475.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值