最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Refresh content of CKEDITOR - Stack Overflow

programmeradmin3浏览0评论

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

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

Share Improve this question asked Apr 16, 2014 at 14:24 ShatteratorShatterator 511 gold badge1 silver badge4 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

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

发布评论

评论列表(0)

  1. 暂无评论