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.
I have some PDF files that have been added to the library, however I am unable to add them. Instead, I get the error in the attached screen shot. The first error occurs when the form shown is loaded. The next ones occur each time "Submit" is attempted to be clicked.
I'll be happy to provide more info if needed, just let me know what you need.
Thanks in advance.
Comment | File | Size | Author |
---|---|---|---|
#4 | wysiwyg_media_form_issue.png | 74.72 KB | deggertsen |
#3 | media_error.png | 56.74 KB | TechNikh |
mediamodule-jserror.png | 58.02 KB | RyanPrice |
Comments
Comment #1
askibinski CreditAttribution: askibinski commentedI can confirm this in 2.x-dev with the same javascript errors.
Comment #2
Dave ReidComment #3
TechNikh CreditAttribution: TechNikh commentedI am getting similar javascript errors
Comment #4
deggertsen CreditAttribution: deggertsen commentedSeems like it's not just pdfs. I have a similar if not the same problem with audio files. See screenshot.
This issue basically renders this module useless to me.
Comment #5
Steven Jones CreditAttribution: Steven Jones commentedYeah, so this appears to be because an image doesn't get inserted for these elements or somesuch, so for example, I have it set up so that my audio files are rendered in an audio player, but that doesn't return an image, so the wysiwyg chokes. If I add a file display mode that is an image, then it seems to work.
Comment #6
Steven Jones CreditAttribution: Steven Jones commentedRight, it would seem that formatters need to be aware that media module can only embed images, and take action accordingly, I'm going to open an issue with mediaelement (where I have the issue at the moment).
Comment #7
Steven Jones CreditAttribution: Steven Jones commentedSee: #1462854: Breaks when media module inserts into a WYSIWYG for my fix for mediaelement.
Comment #8
Devin Carlson CreditAttribution: Devin Carlson commentedThis is a duplicate of #1283844: [meta] Improve WYSIWYG integration.