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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GoZ’s picture

Status: Active » Needs review
FileSize
1.87 KB

Here is the patch

This patch is part of the #1day1patch initiative.

Chris Matthews’s picture

Component: WYSIWYG integration » Code
Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll

The 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.

joseph.olstad’s picture

Status: Needs work » Closed (outdated)

feel free to submit a rerolled patch and I will consider re-openning if you need this and want it reviewed