『转载』jQuery Validate验证框架 + CKEditor 无法验证问题的解决方法

来源:互联网 发布:steam mmorpg知乎 编辑:程序博客网 时间:2024/06/05 23:38
文章1:http://yangzhihuan.iteye.com/blog/717254
 1 CKEDITOR.instances["page_content"].on("instanceReady", function() 2         { 3                         //set keyup event 4                         this.document.on("keyup", updateTextArea); 5                          //and paste event 6                         this.document.on("paste", updateTextArea); 7  8         }); 9 10         function updateTextArea()11         {12                 CKEDITOR.tools.setTimeout( function()13                             { 14                                 $("#page_content").val(CKEDITOR.instances.page_content.getData());15                                 $("#page_content").trigger('keyup');16                             }, 0);  17         }

文章2:http://www.360doc.com/content/13/0727/13/5224731_302806648.shtml

 

原创粉丝点击