Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
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
Comment | File | Size | Author |
---|---|---|---|
media_ckeditor.png | 37.38 KB | infinet |
Comments
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedHi 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.
Comment #3
RedEight CreditAttribution: RedEight at 95Visual commentedinfinet, 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.
Comment #4
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedRecent 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