Javascript broken in Firefox
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 ![]()

RSS/XML