CKEditor 未加载

发布于 2024-08-18 04:09:34 字数 262 浏览 5 评论 0原文

我遇到以下问题:

我有一个带有内容 div 的页面,其中页面通过 AJAX 加载,并且菜单项称为 STEP 1 、 STEP 2 等,

现在每次我单击某个步骤时,都会在内容 div 中加载新页面。其中一个页面包含 CKEditor

当点击包含 CKEditor 的链接时,CKEditor 加载完美,当我再次点击该链接时,CKEditor 所在的 spcae 为空白,未加载,因此我需要硬刷新页面并单击再次链接,然后 ck 编辑器再次显示。任何建议将受到高度赞赏

I have the following problem

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尘曦 2024-08-25 04:09:34

以下解决了我的问题

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

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

}

The following solved my problem

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

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

}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文