开发者

CKEditor not loading

I have the following problem

开发者_JAVA技巧

I have a page with a content div where pages are loaded in via AJAX and menu items called STEP 1 , STEP 2 etc

NOw everytime I click on a step a new page is being loaded in the content div. One of the pages contains CKEditor

When clicking on the link that contains CKEditor, CKEditor loads perfectly, when I click on the link again, the spcae where CKEditor is is blank, not loading, so I need to hard refresh the page and click on the link again, then ck editor is displaying again. Any advice will be highly apprciated


The following solved my problem

if (CKEDITOR.instances['editor1']) {

  CKEDITOR.instances['editor1'].destroy();

}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜