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

Fix bold italic exportDOM #3584

Merged
merged 5 commits into from
Dec 18, 2022
Merged

Fix bold italic exportDOM #3584

merged 5 commits into from
Dec 18, 2022

Conversation

trueadm
Copy link
Collaborator

@trueadm trueadm commented Dec 17, 2022

This PR makes the exportDOM for TextNode apply inline styles to make it more applicable for copy+paste and other use-cases like HTML output for email where classes might not be available.

This majorly improves the compatibility with Quip, Google Docs and Word, at the cost of making our output less semantic. However, it's a trade-off that we should probably bite.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 17, 2022
@vercel
Copy link

vercel bot commented Dec 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview Dec 17, 2022 at 11:52PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview Dec 17, 2022 at 11:52PM (UTC)

@trueadm trueadm merged commit d261e12 into main Dec 18, 2022
@trueadm trueadm deleted the fix-bold-italic branch December 18, 2022 00:44
@trueadm trueadm mentioned this pull request Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants