Download & Extend

JS Error when adding format with no HTML

Project:Media
Version:7.x-2.x-dev
Component:WYSIWYG integration
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'm using media_internet in conjunction with media_oembed. Media_oembed only provides formatters for 2 of the 5 that the file entity can use. If I try to select the other 3, I get a js error in wysiwyg-media.js on line 195: Uncaught TypeError: Cannot read property 'attributes' of undefined

It's looking for the first node in an empty string, finds nothing but keeps going anyway.

Is this something developers of plugins need to take care of, either by implementing all the formatters or the view modes alter hook?

Comments

#1

This sounds like the same problem I noted in http://drupal.org/node/1016376#comment-6319856 when using the Google Viewer file format.

nobody click here