zoukankan      html  css  js  c++  java
  • KinderEditor编辑器使用

    KinderEditor编辑器使用
    1:
    <script src="/KinderEditor/kindeditor-min.js"></script>
    <link rel="stylesheet" href="/KinderEditor/themes/default/default.css" />
    <link rel="stylesheet" href="/KinderEditor/plugins/code/prettify.css" />
    <script charset="utf-8" src="/KinderEditor/kindeditor.js"></script>
    <script charset="utf-8" src="/KinderEditor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="/KinderEditor/plugins/code/prettify.js"></script>

    2:
    <script type="text/javascript">
    KindEditor.ready(function (K) {
    var editor1 = K.create('#MsgContent', {
    cssPath: '/KinderEditor/plugins/code/prettify.css',
    uploadJson: '/KinderEditor/asp.net/upload_json.ashx',
    fileManagerJson: '/KinderEditor/asp.net/file_manager_json.ashx',
    allowFileManager: true,
    afterBlur: function () { this.sync(); },//注意这里(异步提交时需要同步)
    afterCreate: function () {
    var self = this;
    self.sync();//把富文本编辑器的内容放到 文本域里面去。

    }
    });
    prettyPrint();//注意要调用该方法.
    });
    </script>

    3: <textarea id="MsgContent" cols="100" rows="8" style=" 500px; height: 200px; visibility: hidden;" name="Msg"></textarea>

  • 相关阅读:
    CF997C Sky Full of Stars
    LOJ6160 二分图染色
    AT4996 [AGC034F] RNG and XOR
    AT4119 [ARC096C] Everything on It
    20200701线性代数概率期望练习
    SNOI2020 LOJ3326 字符串
    SNOI2020 LOJ3323 生成树
    SNOI2020 LOJ3324 取石子
    Gym-102576A Bags of Candies
    Gym-102576H Lighthouses
  • 原文地址:https://www.cnblogs.com/wsn1203/p/5173495.html
Copyright © 2011-2022 走看看