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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a rich text Twig component #7034

Merged
merged 4 commits into from May 10, 2024
Merged

Conversation

m-vo
Copy link
Member

@m-vo m-vo commented Mar 20, 2024

This introduces a _rich_text component as outlined in #6783.

This way you do not have to repeat yourself with things like this but can change it at one place:

<div class="rte">
    {{ text|csp_inline_styles|insert_tag|encode_email|raw }}
</div>

It should also make updates smoother when we add yet another filter. 馃槢

@m-vo m-vo added the feature label Mar 20, 2024
@m-vo m-vo added this to the 5.4 milestone Mar 20, 2024
@m-vo m-vo requested a review from ausi March 20, 2024 14:34
@m-vo m-vo self-assigned this Mar 20, 2024
@leofeyer leofeyer merged commit ba73769 into contao:5.x May 10, 2024
18 checks passed
@leofeyer
Copy link
Member

Thank you @m-vo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants