Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
CKEditor initialisation throws a Javascript error in IE6-IE8 when processing the teaser of a drupal content.
In IE9 beta it seems to work.
Problem is located at ckeditor.utils.js on Lines 41 and 130.
Creating the global var teaser like this:
if (teaser = Drupal.ckeditorTeaserInfo(textarea_id))
does not work in older IE's.
I fixed this localy by defining the teaser var directly like this:
var teaser = Drupal.ckeditorTeaserInfo(textarea_id);
if (teaser)
This also has the Side effect in keeping the teaser var local.
The Fix seems to work fine.j
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedI fix it and commit to GIT.
Please check the latest dev release and let me know if you notice any poblems with it. Remember to clear Drupal cache and browsers cache before testing.
Comment #2
tobey_p CreditAttribution: tobey_p commentedI checked the latest Dev and the Fix is missing for the Function Drupal.ckeditorOff.
There is still an instance of
So when you switch back to plaintext it still breaks in IE6-IE8.
Cheers,
tobey
Comment #3
tobey_p CreditAttribution: tobey_p commentedJust changed the Status to "needs work".
Hope that is o.k.
Cheers,
tobey
Comment #4
dczepierga CreditAttribution: dczepierga commentedI fix it also there - look here for diff: http://drupalcode.org/project/ckeditor.git/blobdiff/98e98281779d4ce82c6c...
Sometimes is more time needed to Drupal rebuild DEV package.
Greetings
Comment #5
tobey_p CreditAttribution: tobey_p commentedAh ok, didnt know about that. The Diff looks indeed good.
So i downloaded the dev Package in the middle of rebuilding :-)
Cheers,
tobey