Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh content of CKEDITOR

I need to refresh/update the content of an CKEDITOR instance. What I try to do is that I have replaced a textarea with ckeditor. Then some javascript changes the content of the replaced textarea. After this, the content of the CKEDITOR has to pull the new content from the Textarea. Is there any function I can call?

hope you guys know a soltuion... Thaks

like image 336
Shatterator Avatar asked Oct 20 '25 21:10

Shatterator


1 Answers

You can use CKEDITOR.editor.setData:
http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData

like image 146
Sergey K Avatar answered Oct 23 '25 11:10

Sergey K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!