CKEditor IE8问题

发布于 2024-08-12 12:49:47 字数 412 浏览 4 评论 0原文

有人在使用 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 技术交流群。

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

发布评论

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

评论(3

踏月而来 2024-08-19 12:49:47

我尝试通过将您提供的 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?

当梦初醒 2024-08-19 12:49:47

我现在确实可以重现它。不太好! :)

事实上,div 可编辑的,只是很难将光标放入其中。可以通过单击 div,然后单击其右侧的外部(至少我设法以这种方式进入该字段)。内容本身是可编辑的。

这已被归档为CKEditor 中的错误。它有一个补丁值得一看:

使用此补丁,行为与 FCKeditor 相同,因此单击并稍等片刻后,具有布局的元素就可以编辑。这可以帮助修复#4910,因为现在可以定位隐藏的 div(至少我希望如此)

让我们知道补丁是否有效!

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:

With this patch the behavior is the same than FCKeditor, so elements with layout are editable after clicking and waiting a little. This can help to fix #4910 as now it will be possible to position the hidden div (at least I hope so)

Let us know whether the patch works!

七秒鱼° 2024-08-19 12:49:47

使用 IE8/7 的我也发生了同样的事情...在我的例子中,html 更像是这样的:

<div class="width50 floatright">
<p>Some text you can't edit in IE</p>
</div>
<p>This text you can edit in IE</p>

css(外部文件)如下:

div.width50{
    width:50%;
}
.floatright{
    float:right;
}

应用上面的补丁确实有效,但是为了获得它还有更多的麻烦要跳过在职的。您需要重新打包文件。

阅读以下内容:

编辑后重新压缩 ckeditor 文件

为我工作...

same happened for me using IE8/7... in my case the html was more like this:

<div class="width50 floatright">
<p>Some text you can't edit in IE</p>
</div>
<p>This text you can edit in IE</p>

css (external file) as follows:

div.width50{
    width:50%;
}
.floatright{
    float:right;
}

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...

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