在kindeditor 获取textarea 中 输入的值

要在kindeditor 获取textarea 中 输入的值 必须在kindeditor创建的时候添加下面红色字体的代码
 
 
kindeditor创建代码如下:
var editor;
KindEditor.ready(function (K) {
    editor = K.create('textarea[name="content"]', {
        resizeType: 1,
        allowPreviewEmoticons: false,
        allowImageUpload: false,
        items: [
            'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
            'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
            'insertunorderedlist', '|', 'emoticons', 'image', 'link'],
        afterCreate : function() {
            this.sync();
        },
        afterBlur:function(){
            this.sync();
        }
    });
});
原文地址:https://www.cnblogs.com/wumingxiaoyao/p/6603561.html