We've just updated to media 2.0 alpha2 and note that there is a javascript error in IE that causes the wysiwyg editor to not launch....

This was introduced in #1970370: Split media token handling from WYSIWYG integration javascript, specifically the patch from #5 changed the replaceTokenWithPlaceholder function to use Array.indexOf

I'm not sure whether it would be best to revert to not use indexOf or whether Array.prototype.indexOf should be added to this file to ensure backwards compatiblity for user agents that don't support it.

see : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ParisLiakos’s picture

Version: 7.x-2.0-alpha2 » 7.x-2.x-dev

we should use $.inArray instead

ParisLiakos’s picture

Status: Active » Needs review
FileSize
464 bytes

Status: Needs review » Needs work

The last submitted patch, media-indexOf-IE-2108647.patch, failed testing.

ParisLiakos’s picture

Status: Needs work » Needs review
FileSize
433 bytes
sheise’s picture

Having the same issue. Patch from #4 seems to do the trick.

Dave Reid’s picture

Title: javascript error in IE, js/media.filter.js -- Array.indexOf doesn't exist! » javascript error in IE, js/media.filter.git commit -m "Issue #2108647 by ParisLiakos | tswaterjs -- Array.indexOf doesn't exist!
Status: Needs review » Fixed
ParisLiakos’s picture

Title: javascript error in IE, js/media.filter.git commit -m "Issue #2108647 by ParisLiakos | tswaterjs -- Array.indexOf doesn't exist! » Array.indexOf doesn't exist!

thanks:)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.