How to add data to CKEditor using JQuery

后端 未结 7 1974
无人及你
无人及你 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)
    
    0 讨论(0)
提交回复
热议问题