CKEditor IE8问题
有人在使用 CKEditor 和 IE8 时遇到过这个问题吗?
基本上,当内容包含嵌套的 p 标签时,您无法编辑内容。
即
<div>
<p>This content cannot be changed in IE8</p>
</div>
有人有解决办法吗?
更新了一个示例
抱歉将其拉回,问题是当 div 通过 content.css 或内联具有宽度或高度时引起的。例如:
<div style="width:400px">
<p>This content cannot be changed in IE8</p>
</div>
Has anyone experienced this problem with CKEditor and IE8?
Basiclally, when the content included a nested p tag, you cant edit the content.
i.e.
<div>
<p>This content cannot be changed in IE8</p>
</div>
Anyone have a fix?
UPDATED with an example
Sorry for pulling this back up, The problem is caused when the div has a width OR a height either via the content.css or inline. Such as:
<div style="width:400px">
<p>This content cannot be changed in IE8</p>
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我尝试通过将您提供的 HTML 插入 CKEditor demo 来重现您的问题,并且效果很好。你的情况还发生了其他事情。
你有应用自己的 CSS 吗?
I tried to repro your problem by inserting the HTML you gave into CKEditor demo and it worked fine. Something else is going on in your case.
Do you have your own CSS applied?
我现在确实可以重现它。不太好! :)
事实上,div 是可编辑的,只是很难将光标放入其中。可以通过单击 div,然后单击其右侧的外部(至少我设法以这种方式进入该字段)。内容本身是可编辑的。
这已被归档为CKEditor 中的错误。它有一个补丁值得一看:
让我们知道补丁是否有效!
I can indeed reproduce it now. Not nice! :)
In fact, the div is editable, it's just very hard to get the cursor into it. It's possible by clicking on the div, then outside it to its right (at least I managed to get into the field that way). The content itself is editable.
This has been filed as a Bug in CKEditor. It has a patch worth checking out:
Let us know whether the patch works!
使用 IE8/7 的我也发生了同样的事情...在我的例子中,html 更像是这样的:
css(外部文件)如下:
应用上面的补丁确实有效,但是为了获得它还有更多的麻烦要跳过在职的。您需要重新打包文件。
阅读以下内容:
编辑后重新压缩 ckeditor 文件
为我工作...
same happened for me using IE8/7... in my case the html was more like this:
css (external file) as follows:
Applying the above patch does work, however there's a couple more hoops to jump through in order to get it working. You need to re-package the files.
Read this:
recompressing ckeditor files after edits
worked for me...