In CKeditor Add Image function the Media Browser popup won't open.

It actually does work when using CKeditor in an edit node page.
e.g. node/2/edit

media popup

However on a Block edit page (note I'm using the bean module) when you click "Upload/Browse Server" nothing happens, except it produces the following JS error:
Uncaught TypeError: Cannot read property 'popups' of undefined

In plugins.js the Drupal.media object is undefined in this line:
var mediaIframe = Drupal.media.popups.mediaBrowser(function(mediaFiles)

Note: I have also tried the latest dev of Media module (7.x-2.x-dev).

Thanks

CommentFileSizeAuthor
media_ckeditor.png37.38 KBinfinet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

infinet created an issue. See original summary.

Anonymous’s picture

Issue summary: View changes

Hi infinet, This looks like a Jquery compatibility issue. Can you check your installed version of Jquery? I would strongly suggest you install the Jquery Update module which will permit you to separate your administration theme version from your public-facing theme.

RedEight’s picture

infinet, you wouldn't by any chance be using the ckeditor_media module to get that [upload/browser server] button would you?

I've recently had this issue 'popup' after updating CKeditor to the latest version 1.17. It shows up on the site that has the ckeditor_media module installed and it happens right when I click that button. The js file that throws it is ckeditor_media/plugins/mediaBrowser/plugin.js.

I tried the jquery update module as suggested by macjules with no luck. The Drupal.media object is undefined regardless of what I set in jquery update.

Chris Matthews’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
Status: Active » Closed (outdated)
Issue tags: -media, -ckeditor

Recent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.

Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.

As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.

Thanks,

Media team