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.
Ive been having trouble getting Wysiwyg to show up (with any editor). I noticed the console error i get is:
Cannot read property 'mozilla' of undefined.
Not sure which js file its coming from, but the code is:
if ($.browser.mozilla) {
$('#hierarchical-select-'+ hsid +'-wrapper').parents('form').attr('autocomplete', 'off');
}
Comments
Comment #1
TwoDThis code is not from Wysiwyg module. The console should say which file and in which line the error gets thrown.
Any error thrown before Wysiwyg's scripts are executed can force the browser to halt all script execution, thus preventing any editors from appearing.
If I were to guess, it looks like the Hierarchial select module depends on an older jQuery version (as is shipped with Drupal 7) and it fails because jQuery Update was used to load a later version, where the
jQuery.browser
information has been removed.Switch back to an earlier jQuery version which is more compatible with the version originally shipped with D7 and you should be fine. (Alternatively, ask the Hierarchial select modul maintainers to not depend on
jQuery.browser
, but that doesn't guarantee other modules won't fail in similar ways.)