kindeditor編輯器,獲取textarea值

在獲取textarea值的時候,從數據庫讀出來的值都能獲取到,但是新輸入的值就得不到,只要是新輸入的都得不到值


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

    }); 


轉載:http://www.oschina.net/question/559485_53596


afterCreate : function() { 
         this.sync(); 
        }, 
        afterBlur:function(){ 
            this.sync(); 
        }              

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章