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 JS error when updating a wysiwyg with media files (images) which brake wysiwyg display (ckeditor implemented by wysiwyg module).
TypeError: src is undefined
... = src.replace('-media_id-', mediaFile.fid) + '&fields=' + JSON.stringify(mediaF...
media.popups.js (ligne 157)
I don't reproduce this error inserting all images but specific ones.
Patch below fix this anyway.
Comment | File | Size | Author |
---|---|---|---|
#1 | media-wysiwyg-broken-inserting-images-2101099-1.patch | 1.87 KB | GoZ |
Comments
Comment #1
GoZ CreditAttribution: GoZ commentedHere is the patch
This patch is part of the #1day1patch initiative.
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 5 year old patch in #1 does not apply to the latest media 7.x-2.x-dev and if still relevant needs to be rerolled.
Comment #3
joseph.olstadfeel free to submit a rerolled patch and I will consider re-openning if you need this and want it reviewed