Using JQuery to set CKEditor Value

后端 未结 2 547
野趣味
野趣味 2020-12-31 10:27

I have a CKEditor textarea:

 


        
相关标签:
2条回答
  • 2020-12-31 11:14

    After reading this link http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#setData, following code work for me.

    CKEDITOR.instances.editor1.setData( '<p>This is the editor data.</p>' );
    
    0 讨论(0)
  • 2020-12-31 11:31

    You need to use CKEditor's API instead.

    Specifically, http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#setData

    0 讨论(0)
提交回复
热议问题