In a Wysiwyg editor, images placed from the Drupal Media module use brackets instead of HTML code. For instance: [[{type:media... ]]

This gets converted into markup by the editor and works for nodes viewed in the browser. However something goes wrong with HTML Emails. Instead of the converted HTML markup, the Emails show empty brackets: []

The "Convert media-tags to markup" option on the text-formats configuration page does not seem to have an effect.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ParisLiakos’s picture

Version: 7.x-1.0-beta8 » 7.x-1.x-dev

Ah seems,there is a problem with token_replace() here since tokens use [] as well

ParisLiakos’s picture

Status: Active » Needs review
FileSize
3.32 KB

can you check this patch?

NicolasZanotti’s picture

Issue tags: +#media

Thank you Paris. I ran three tests with the applied patch and they all worked.

NicolasZanotti’s picture

Status: Needs review » Reviewed & tested by the community
ParisLiakos’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the testing!
commited

Automatically closed -- issue fixed for 2 weeks with no activity.