Skip to content

Make DOMPurify configurable - #1208

Merged
djmb merged 2 commits into
mainfrom
dom-purify-config
Dec 11, 2024
Merged

djmb merged 2 commits into
mainfrom
dom-purify-config

Conversation

@djmb

@djmb djmb commented Dec 10, 2024 •

Copy link
Copy Markdown
Contributor

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

Additionally avoid stripping data-trix-* attributes.

@jorgemanrubia jorgemanrubia left a comment

Copy link
Copy Markdown
Member

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
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