kindeditor的值到textarea里

    //主要内容
    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,
             "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();
    });

  

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