i've updated to the latest dev (7.x-2.0-alpha3+100-dev) and the media browser modal opened from the CKeditor button loads blak with the following error in the Firefox console:
"NetworkError: 500 Internal Server Error - http://drupal.ttservers.it/media/browser?render=media-popup&types=&activ..."
----
TypeError: this.contentWindow.Drupal is undefined
----

The javascript file that seems to throw the error is media/js/media.popups.js at line 98 (if (this.contentWindow.Drupal.media == undefined) return;")

Drupal.media.popups.mediaBrowser.mediaBrowserOnLoad = function (e) {
  var options = e.data;
  if (this.contentWindow.Drupal.media == undefined) return;

  if (this.contentWindow.Drupal.media.browser.selectedMedia.length > 0) {
    var ok = (Drupal && Drupal.t) ? Drupal.t('OK') : 'OK';
    var ok_func = $(this).dialog('option', 'buttons')[ok];
    ok_func.call(this);
    return;
  }
};

Any advice?

Thanks
Oto Tortorella

Comments

veleno’s picture

I solved updating media_youtube to latest dev (7.x-2.0-rc4+14-dev).
Media browser loadet through CKeditor still do not respect setting in "WYSIWYG configuration" in admin/config/media/browser.

chris matthews’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Needs review » Closed (outdated)

Closing as outdated