简体   繁体   English

CKEditor在旧版本的Internet Explorer中不显示

[英]CKEditor not displaying in old Internet Explorer versions

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: 我已经在我的网站上安装了CKEditor,并且在最近的浏览器中可以正常工作,但是在Internet Explorer 6和7中没有显示它。搜索之后,我在CKEditor网站上找到了以下内容:

Even the old Internet Explorer 6 is compatible with.

Source: http://cksource.com/ckeditor 资料来源: http//cksource.com/ckeditor

I didn't change anything to the editor. 我没有对编辑器进行任何更改。 I just included the Javascript file: 我只包含了Javascript文件:

<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? 是否可以使编辑器在IE6 / 7中工作?

Thanks 谢谢

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. 我在IE 7中使用CK编辑器遇到了类似的问题,最终它是导致问题的实际HTML中的问题。

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? 当您说“不显示”时,是指整个CK编辑器的文本区域,还是菜单出现但没有内容?

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! 在找出问题之前,我在一个相当高级的系统中安装了CK编辑器,其中包含其他CSS / JS内容,因此我只是制作了整个项目的副本,然后一点一点地剥离内容,直到剩下很少的代码为止尽可能在问题仍然存在的地方,使调试变得容易得多:)祝您好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM