kindeditor编辑器,获取textarea值

在获取textarea值的时候,从数据库读出来的值都能获取到,但是新输入的值就得不到,只要是新输入的都得不到值

答案:

我昨天刚用kindeditor,我是使用ajaxForm提交表单的在360浏览器下获取textarea没问题,可在火狐浏览器下却获取不到值,后来我添加 了afterBlur:function(){this.sync();}   火狐才获取到值!

我的kindeditor创建代码如下:

KindEditor.ready(function(K) {

     editor = K.create('textarea[name="content"]', { 
        cssPath : '../kindeditor/plugins/code/prettify.css', 
        uploadJson : '../Kindeditor/KEupload', 
        fileManagerJson : '../kindeditor/php/file_manager_json.php', 
        allowFileManager : true,    
        afterCreate : function() { 
         this.sync(); 
        }, 
        afterBlur:function(){ 
            this.sync(); 
        }                 
    }); 

原文地址:https://www.cnblogs.com/shanmao/p/3421786.html