Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newsletter: HTML output is broken #3562

Closed
Mediazept opened this issue Oct 7, 2021 · 2 comments · Fixed by #3571
Closed

Newsletter: HTML output is broken #3562

Mediazept opened this issue Oct 7, 2021 · 2 comments · Fixed by #3571
Labels
Milestone

Comments

@Mediazept
Copy link

Affected version(s)

Contao 4.9.21

Description and how to reproduce

Create a new newsletter and enter text into the HTML field. Source code in TinyMCE looks fine, but the output is broken. HTML is not interpreted, tags are rendered as normal text element.
The error can be reproduced with the Contao demo install (see screenshots).
image
image
image

@ausi
Copy link
Member

ausi commented Oct 8, 2021

This is most probably caused by #3513

@Mediazept can you please test if creating the file contao/dca/tl_newsletter.php with the following content fixes the issue?

<?php
$GLOBALS['TL_DCA']['tl_newsletter']['fields']['content']['eval']['allowHtml'] = true;

@ausi ausi added the bug label Oct 8, 2021
@ausi ausi added this to the 4.9 milestone Oct 8, 2021
@Mediazept
Copy link
Author

Mediazept commented Oct 8, 2021

Thanks for your quick response and providing a workaround. I can confirm that your suggested DCA setting fixes the bug.

@ausi ausi linked a pull request Oct 11, 2021 that will close this issue
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants