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

后端 未结 6 1011
故里飘歌
故里飘歌 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:45

    I just did it like this:

    $('#MyTextArea').closest('form').submit(CKupdate);
    
            function CKupdate() {
                for (instance in CKEDITOR.instances)
                    CKEDITOR.instances[instance].updateElement();
                return true;
            }
    

提交回复
热议问题