开发者

CKEditor not loading

开发者 https://www.devze.com 2022-12-17 19:01 出处:网络
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

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

精彩评论

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

关注公众号