首页 > 其他 > 详细

kindeditor的值到textarea里

时间:2020-06-11 11:55:15      阅读:46      评论:0      收藏:0      [点我收藏+]
    //主要内容
    KindEditor.ready(function (K) {
        editor = K.create(‘#zynr‘, {
            cssPath: ‘../../Scripts/kindeditor-4.1.10/plugins/code/prettify.css‘,
            uploadJson: ‘../../Scripts/kindeditor-4.1.10/asp.net/upload_json.ashx‘,
            fileManagerJson: ‘../../Scripts/kindeditor-4.1.10/asp.net/file_manager_json.ashx‘,
            allowFileManager: true,
            width: "760px",
            height: "200px",
            afterBlur: function () { this.sync(); },
            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();
    });

  

kindeditor的值到textarea里

原文:https://www.cnblogs.com/luckys/p/13091668.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!