How to get value of CKEditor 5?

前端 未结 3 1136
花落未央
花落未央 2021-01-12 05:13

I want to be able to return the value of the CKEditor textarea, and also write my text inside it.

I used CKEditor 5 CDN. First this my code for the textarea it works

3条回答
  •  暖寄归人
    2021-01-12 05:52

    Using the developer console, I found this to work for me:

    CKEDITOR.instances.(textarea_id).getData();

提交回复
热议问题