问题描述
使用easyui执行post后不会提交kindeditor对应的textarea中新增的内容。只会显示默认内容。
提交后的值还是textarea的默认值。原因就是没有给kindeditor添加afterChange事件。
解决方法
就是添加以下代码
var editor;
KindEditor.ready(function(K) {
editor = K.create('#kindeditor', {
afterChange: function () {
this.sync();
},
afterBlur: function () { this.sync(); }
});
转载请注明: 安全者 » easyui整合kindeditor的一些问题