Using JQuery to set CKEditor Value

后端 未结 2 563
野趣味
野趣味 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( '

    This is the editor data.

    ' );

提交回复
热议问题