shanmao

在获取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(); 
        }                 
    }); 

 

分类:

技术点:

相关文章:

  • 2022-01-02
  • 2021-10-08
  • 2021-12-05
  • 2021-09-17
  • 2021-09-17
  • 2022-01-02
  • 2021-10-08
猜你喜欢
  • 2021-10-03
  • 2021-09-17
  • 2021-11-11
  • 2021-07-25
  • 2021-08-05
  • 2021-12-05
  • 2021-09-17
相关资源
相似解决方案