摘要: KindEditor的最新版本中,为了性能,取消了随时同步的功能,结果当使用jquery.validate来验证不为空时,必须要点两次,这个郁闷.研究半天,终于找到一个解决方案,直接上代码:if (typeof KindEditor !== "undefined" && KindEditor.instances) { $.each(KindEditor.instances, function() { this.sync(); });}把这段代码插入到jquery.validate的this.onsubmit下面(第56行),搞定! 阅读全文
posted @ 2013-06-18 13:58 xclin163 阅读(1143) 评论(0) 推荐(0) 编辑