有时 FCKeditor 在 Firefox 中无法加载

发布于 2024-08-15 17:38:25 字数 218 浏览 4 评论 0原文

我无法在需要时重现该问题,但似乎时不时地,我使用 FCKeditor 的网站会加载界面,但不会加载内容(单击按钮不会执行任何操作)。没有 JavaScript 错误显示,一旦开始执行,通常很难恢复正常。我发现效果最好的方法是连续多次单击刷新按钮,然后 FCKeditor 会正确加载。我只在 Firefox 中看到过这个

有其他人遇到过这个问题或知道解决方案吗?这对我来说有点烦人,但我担心我的客户会很困惑

I am unable to replicate the problem when I want to but it seems like every now and then, my site using FCKeditor will load the interface but not the content (Clicking the buttons don't do anything). No javascript errors show and once it starts doing it, it usually is tough to get back to normal. The way I found to work best is to click the refresh button multiple times in a row, then the FCKeditor loads correctly. I have only seen this in Firefox

Has anyone else run into this problem or know a solution. It is a little annoying for me but I am afraid my client would be really confused

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

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

发布评论

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

评论(4

梦初启 2024-08-22 17:38:25

我在FCKEditor的后继者CKEditor中经历过你所描述的现象。不知何故,包含所见即所得内容的 IFRAME 不会被加载。总是有帮助的是切换到源代码视图并返回,但这不是解决方案。

我在互联网上看到了描述的问题,但没有解决方案。

我认为缓存不是问题。有时,如果你按“重新加载”20次,它会在第21次时中断,并在第22次时再次工作。

对我来说,最大限度地减少出现次数的方法是激活编辑器底部显示元素路径的东西(body > p > span,我忘记了它的名称)。我现在不知道为什么,但自从我打开它以来,它很少再出现故障。

I have experienced the phenomenon you describe in FCKEditor's successor, CKEditor. Somehow, the IFRAME that contains the WYSIWYG content doesn't get loaded. What always helps is switching to source code view and back, but that's no solution.

I have seen the problem described on the Internet but with no solution.

Caching is not the problem, I think. Sometimes, if you press "reload" 20 times, it will break at the 21th time, and work again on the 22nd time.

What minimized the number of occurrences for me was to activate the thingy to the editor's bottom that shows the element path (body > p > span, I forgot it's name). I don't now why but since I turned it on, it very rarely breaks any more.

绿光 2024-08-22 17:38:25

我遇到过这个问题。我通过在登录过程中在隐藏的 iframe 中预加载 FCKeditor 来解决这个问题,这样当它到达使用它的页面时,它已经在缓存中了。

I have had this problem. I solved it by pre-loading FCKeditor in a hidden iframe during the login process so that when it got to the pages where it was used it was already in the cache.

第七度阳光i 2024-08-22 17:38:25

我强烈建议升级到CKEditor,它不仅可以口头拼写出来而不会冒犯任何人,而且还可以优化加载时间减到最少。我发现它比他的 F 朋友反应灵敏得多。

i would strongly advise to upgrade to CKEditor which can not only be spelled out verbally without offending anyone, but also optimizes the loading time to minimal. I find it much more responsive than his F- friend.

紙鸢 2024-08-22 17:38:25

我在 Firefox(不可重现)和 chrome(可重现)中遇到了这个问题。
在这两种情况下都效果很好的解决方案是在初始化 CKE 之前等待几毫秒:

setTimeout(function() {textarea.ckeditor({customConfig : 'custom/schnonfig.js'})} , 100);

I encountered this problem with firefox (not reproducible) and chrome (reproducible).
The solution that worked quite well in both cases was to wait for some milliseconds before initializing CKE :

setTimeout(function() {textarea.ckeditor({customConfig : 'custom/schnonfig.js'})} , 100);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文