Issues editing site in Internet Explorer 8

Permalink
Hi guys,

Having some issues editing a site that's built in Concrete5, using Internet Explorer 8. It works fine in all other (modern) browsers, it's just IE8 that is mis-positioning the ccm-highlighter div when scrolling down the page. Everything that is editable above the fold is fine, until you scroll down, when the ccm-highlighter div moves higher and higher away from the block that I'm hovering over.

Has anyone experienced this type of problem before? I had thought that it may have something to do with the way certain sections had been positioned, or negative margins that have been used, or the way floats have been cleared, however, removing them doesn't seem to fix the issue.

Any help would be greatly appreciated!

Thanks!

James

 
slafleche replied on at Permalink Reply
slafleche
I often get problems with the edit blocks. The solution I came up with is to have jQuery check if there are any ".ccm-area" or ".ccm-block" classes in the page. If there is, I append a special CSS file to the page, to correct problems with the edit mode. Make sure you remove it if you're not in edit mode!

Hope that helps!
jamesmountford replied on at Permalink Reply
Thanks slafleche,
I was actually doing something similar myself but it didn't seem to fix it (removing all possibly-incompatible styles for edit mode).
Not sure if it might be of use to you, but you can actually avoid having to use jQuery for that one by checking $c->isEditMode(). I do that, and just place a class in the body tag by doing the following:

<?php
global $c;
$classes = (!empty($classes) ? $classes : '');
if($c->isEditMode())
{
if(empty($classes))
{
$classes = 'edit_mode';
}
else
{
$classes .= ' edit_mode';
}
}
?>
<body class="<?php echo $classes; >">

Then just add styles into the stylesheet which have .edit_mode at the beginning. Alternatively, more alike your current method, you could just have:
<?php
global $c;
if($c->isEditMode())
{
?>
<link href="stylesheetname.css" ... />
<?php
}
?>
johnpaulb replied on at Permalink Reply
johnpaulb
Hello jamesmountford,

You may want to consider updating to IE9, since it does not seem to have this same problem.

You will see more inconsistencies going forward, as IE8 becomes less capable of handling certain updated scripts, etc.

Just as a heads-up, a preview for IE10 is now available and it is supposed to be released soon.

I hope this helps,

-John-Paul
jamesmountford replied on at Permalink Reply
Hi johnpaulb,

It's actually a client that has this issue, personally I like to stay as far away as possible from Internet Explorer. Google Chrome is my preference.

I have so far recommended updating/changing browser/trying to install ChromeFrame for Internet Explorer. Will see what comes of it!

Cheers!

James