Live2D 看板娘 / Demo

使用kindeditor时,取不到值

  KindEditor.ready(function (K) {
            var editor1 = K.create('#txtContent', {
                cssPath: '/kindeditor/plugins/code/prettify.css',
                uploadJson: '/kindeditor/asp.net/upload_json.ashx',
                fileManagerJson: '/kindeditor/asp.net/file_manager_json.ashx',
                allowPreviewEmoticons: false,
                filterMode: true,
                allowImageUpload: true,
                afterBlur: function () {
                    this.sync();
                    K.ctrl(document, 13, function () {
                        K('form[name=myform]')[0].submit();
                    });
                    K.ctrl(this.edit.doc, 13, function () {
                        K('form[name=myform]')[0].submit();
                    });
                },
                items: [
                        'source', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                        'insertunorderedlist', '|', 'emoticons', 'image', 'multiimage', 'media', 'about']
            });
            prettyPrint();
        });
 afterBlur: function () {
                    this.sync();
                    K.ctrl(document, 13, function () {
                        K('form[name=myform]')[0].submit();
                    });
                    K.ctrl(this.edit.doc, 13, function () {
                        K('form[name=myform]')[0].submit();
                    });
                },

http://zzs223224.blog.163.com/blog/static/1789655220142231154912/

posted @ 2016-06-16 09:07  MChuang  阅读(595)  评论(0编辑  收藏  举报