Wysiwyg Javascript Errors in IE - "Object doesn't support this property or method"

Events happening in the community are now at Drupal community events on www.drupal.org.
mwmconsulting's picture

Hey All,

I'm using the WYSIWYG module (version 6.x-2.1) on my Drupal 6.x install. I'm using it in conjunction with Tiny MCE 3.2.6.

Everything works fine in Firefox, but in IE I am getting the following javascript error:

Object doesn’t support this property or method
tiny_mce.js Line: 1

Object doesn’t support this property or method
wysiwyg.js Line: 199 Code: 0 Line: 5

I upgraded Tiny MCE from 3.2.6 to the latest 3.3.6, but this did not fix the issue.

I also installed the NicEdit editor, but the same JS error showed up:

Object doesn’t support this property or method
wysiwyg.js Line: 199 Code: 0 Line: 5

Again, this is only happening on IE (version 8).

Any ideas? Module incompatibility?

Thx!

MWM

Comments

Missing classes

eugenmayer's picture

Sounds like your input field misses the classes. the reason for it could be your custom theming. Verify this issue using a clean d.6.17 installation and report back

I'm using CKEditor

zps's picture

I'm using CKEditor (3.3.0.5542)
works fine in FF but in IE8 I get this error:

Message: Object doesn't support this property or method
Line: 199
Char: 5
Code: 0
URI: http://www.defsome.com/sites/all/modules/wysiwyg/wysiwyg.js?p

I'm using a Zen sub-theme. when I change to Zen or Garland IE works fine.

What do I need to add to my sub-theme in order to make it work?

May be related.

chawl's picture

I have a similar problem with IE7/8, but only if I add the "Wibiya Toolbar" to a page, and IE8 script debugger complains of wysiwyg.js for:

198   for (var i in classes) {
199     if (classes[i].substr(0, 8) == 'wysiwyg-') { #!!!...This line is complained of...!!!
200       var parts = classes[i].split('-');
201       var value = parts.slice(2).join('-');
202       params[parts[1]] = value;
203     }
204   }

with "Object doesn't support this property or method", and both RTE and W-bar don't load. But if I omit the "if" part W-bar loads successfully.

FF, Chrome, Opera, and Safari have no such a problem as usual. Damn MS.

Hope this helps a bit.

EDIT: Voila! Wysiwyg breaking in... fixed everything and saved my day (even life).

Wysiwyg

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week