Javascript broken in Firefox

August 23, 2008

I’ve struggled quite much time to find out why my Firefox was giving errors in CMS, where the rich editor was working before I do any mods to it. Was pretty strange but hard to fix because I’ve tried to Google on solutions related to that specific CMS ( Drupal, we love Drupal here as well as Wordpress).

My JS console was showing the above errors

replace_element.insertAdjacentHTML is not a function       tiny_mce.js (line 1)

this.contentWindow has no properties            tiny_mce.js (line 1)

So it was something related to tinymce. Well that was my problem but for the same reason you might encounter another error…So, what’s the fix for this problem?

Since last time this tinymce worked I did one change to Firefox indeed. I’ve changed the user agent and looks like that broke the JavaScript.

So, if you have this problem, type about:config in your Firefox and search for general.useragent.extra.firefox. Make sure this has a value something like this Firefox/2.0.0.1. Also, lookup for general.useragent.override and make sure it has an empty value. If you can’t find this last one than there’s no problem.

Hope this helped somebody out there!

Thanks for reading ;)

 

Post a comment

Name (required)

Mail (will not be published) (required)

Website

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word