How to add data to CKEditor using JQuery

后端 未结 7 1988
无人及你
无人及你 2020-12-07 20:33

Everytime a page loads I need to load text into the CK Editor using JQuery, in order to get data from CK Editor I use

var editor_data = CKEDITOR.instances[\'         


        
7条回答
  •  长情又很酷
    2020-12-07 21:34

    Because its not an array then just replace the instance like this

    CKEDITOR.instances.editor1.setData(html)
    

提交回复
热议问题