CKEditor 在旧版 Internet Explorer 中不显示

发布于 2024-11-27 15:27:26 字数 803 浏览 3 评论 0原文

我在我的网站上安装了 CKEditor,它在最近的浏览器中运行良好,但在 Internet Explorer 6 和 7 中无法显示。经过搜索,我在 CKEditor 网站上找到了以下内容:

Even the old Internet Explorer 6 is compatible with.

来源: http://cksource.com/ckeditor

我没有对编辑器进行任何更改。我刚刚包含了 Javascript 文件:

<script type="text/javascript" src="./includes/js/ckeditor/ckeditor.js"></script>

当我想显示编辑器时,我使用:

<label for="text">Text</label><br />
<textarea id="text" name="text" rows="3" cols="50">some text here</textarea><br />
<script type="text/javascript">
  CKEDITOR.replace('text');
</script>

Is it possible to get the editor to work in IE6/7?

谢谢

I've installed CKEditor on my website and it works fine in recent browsers, but it doesn't get displayed in Internet Explorer 6 and 7. After searching, I found the following on the CKEditor website:

Even the old Internet Explorer 6 is compatible with.

Source: http://cksource.com/ckeditor

I didn't change anything to the editor. I just included the Javascript file:

<script type="text/javascript" src="./includes/js/ckeditor/ckeditor.js"></script>

And when I want to display the editor, I use:

<label for="text">Text</label><br />
<textarea id="text" name="text" rows="3" cols="50">some text here</textarea><br />
<script type="text/javascript">
  CKEDITOR.replace('text');
</script>

Is it possible to get the editor to work in IE6/7?

Thanks

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

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

发布评论

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

评论(1

伴梦长久 2024-12-04 15:27:26

我在 IE 7 中使用 CK 编辑器时遇到了类似的问题,最终是实际 HTML 中的某些内容导致了问题。

如果您只是在示例中使用“此处的一些文本”,这不太可能,但出于安全目的您可能已经过滤掉了真实内容?

当您说“它没有显示”时,您是指整个 CK 编辑器文本区域,还是显示菜单但没有内容?

在我弄清楚我的问题之前,我在一个相当先进的系统中使用了 CK 编辑器,其中充满了其他 CSS / JS 内容,所以我只是复制了整个项目,然后一点一点地剥离内容,直到只剩下很少的代码尽可能在问题仍然存在的地方,使调试变得更容易:)祝你好运!

I had similar issues with CK Editor in IE 7 and it ended up being something in the actual HTML that was causing the problem.

If you are simply using 'some text here' in your example this is unlikely, but you may have filtered out the real content for security purposes?

When you say 'it doesn't get displayed' do you mean the whole CK Editor textarea, or do you get the menu's come up but with no content?

Before I figured out my problem, I had CK editor in a fairly advanced system full of other CSS / JS stuff, so I just made a copy of the whole project, then stripped things back bit by bit until I was left with as little code as possible where the problem persisted, makes it much easier to debug then :) good luck!

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