How to ajax-submit a form textarea input from CKEditor?

后端 未结 6 1008
故里飘歌
故里飘歌 2020-11-28 04:13

I am using CKEditor, jQuery and jQuery form plugin and I would like to submit contents of the CkEditor form via an Ajax query. Here is my code:

6条回答
  •  日久生厌
    2020-11-28 04:59

    In my case the following helped me,i just use these two lines before seializing the form.

      for ( instance in CKEDITOR.instances )
           CKEDITOR.instances[instance].updateElement();
    
      var data = $('#myForm').serializeArray();
    

提交回复
热议问题