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

Make DOMPurify configurable #1208

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Make DOMPurify configurable #1208

merged 2 commits into from
Dec 11, 2024

Conversation

djmb
Copy link
Contributor

@djmb djmb commented Dec 10, 2024

Expose Trix.config.dompurify to allow users to configure DOMPurify.

Additionally avoid stripping data-trix-* attributes.

Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great @djmb

Expose Trix.config.dompurify to allow users to configure DOMPurify.
Additionally avoid stripping data-trix-* attributes.
@djmb djmb force-pushed the dom-purify-config branch from 375e86a to da9d999 Compare December 10, 2024 13:36
@djmb djmb merged commit 32b0431 into main Dec 11, 2024
3 checks passed
@djmb djmb deleted the dom-purify-config branch December 11, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants