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

  

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2021-10-05
  • 2021-12-23
  • 2021-05-30
  • 2022-12-23
  • 2021-07-08
  • 2021-06-11
猜你喜欢
  • 2022-02-08
  • 2021-12-23
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案