-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Prevent link paste in RichText components in Button and Navigation blocks #28130
Conversation
Size Change: +19 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code wise this is awesome.
Thanks for the ping Riad! @lukewalczak , seems like this PR touched code you were involved with so, can you give this a look to verify that things are still OK for native mobile? Thanks! |
closes #28091
I noticed that "pasting behavior" don't take into consideration the
withoutInteractiveFormatting
or theallowedFormats
prop. This PR refactors the RichText component a bit to move all the filtering logic to the useFormatTypes hook making sure the "formatTypes" available in the RichText component are consistent in all interactions.Noting that I had to do a change in mobile code too to accommodate this.
Testing instructions