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 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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1491192-incompatibility_wit_media_module_tags-2.patch | 3.32 KB | ParisLiakos |
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedAh seems,there is a problem with
token_replace()
here since tokens use[]
as wellComment #2
ParisLiakos CreditAttribution: ParisLiakos commentedcan you check this patch?
Comment #3
NicolasZanotti CreditAttribution: NicolasZanotti commentedThank you Paris. I ran three tests with the applied patch and they all worked.
Comment #4
NicolasZanotti CreditAttribution: NicolasZanotti commentedComment #5
ParisLiakos CreditAttribution: ParisLiakos commentedThanks for the testing!
commited