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,
            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();
    });

  

posted @ 2020-06-11 10:21  天空之云  阅读(190)  评论(0编辑  收藏  举报