English 中文(简体)
CKEditor IE8 issue
原标题:

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>
问题回答

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?

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!

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





相关问题
Image rendered with wrong colors in IE8

I have a gradient image as a PNG (no transparency) in a web-page. By taking a screenshot of Chrome showing the page and cropping the image from the page, I see the exact same colors are drawn as the ...

Determine Mobile Internet Explorer version

I need to determine the version of Mobile Internet Explorer on a Windows Mobile 6.1 device. So that I can report the same user-agent string as is being used by Mobile Internet Explorer. The user-...

CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

Internet Explorer only part loading JavaScript/CSS

I m having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I ...

IE doesn t run Javascript when you click back button

I ve built a shop with tons of JS running. One of the pieces of the cart, is a zip code field which is required to calculate shipping cost. This works fine going through the cart. Now clicking ...

热门标签