今天使用jquery的KindEditor插件,发现post始终得不到值,后来解决了,先将解决方法贴出了
加上afterBlur:function(){this.sync();},
如下:
editor = K.create('textarea[name="summary"]', {resizeType : 0,
allowPreviewEmoticons : false,
allowImageUpload : false,
afterBlur:function(){
this.sync();
},
items : [
'source', 'selectall', 'quickformat', '|', 'fontname', 'fontsize', '|', 'undo', 'redo', 'cut', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'lineheight', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'image', 'link']
});
这样就OK了