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