How can i get content of CKEditor using JQuery?

前端 未结 15 1845
甜味超标
甜味超标 2020-12-04 15:21

I\'m using CKEditor. I am saving the form values with ajax using page methods.

But the content of CKEditor value cannot be saving into the table.

I dont post

15条回答
  •  无人及你
    2020-12-04 16:01

    Using Pure Vanilla Javascript / Jquery or in any javascript library :

    If you have Ckeditor loaded in below text-area:

     
    

    Then you can get content inside textarea as below:

    var txtNotes = document.getElementsByClassName('ck-content')[0].innerHTML;
    

提交回复
热议问题