『轉載』jQuery Validate驗證框架 + CKEditor 無法驗證問題的解決方法

文章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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章