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(richtext-lexical): remove alteration of lexical text format constant #10415

Conversation

SimonVreman
Copy link
Contributor

In PR #9507, which aims to enable only used formats to be enabled in lexical, the TEXT_TYPE_TO_FORMAT constant in the lexical library was altered. This means it becomes impossible to create a feature relying on the highlight format. I am of the opinion that this should not be the case; and have used this for a lexical feature in one of my projects. The type of enabledFormats of the createClientFeature function should also be updated to reflect the availability of the format.

This PR aims to:

  • Remove the alteration to the library constant
  • Update type of enabledFormats

@GermanJablo GermanJablo self-requested a review January 13, 2025 16:28
@GermanJablo GermanJablo self-assigned this Jan 13, 2025
@GermanJablo GermanJablo merged commit 69fac59 into payloadcms:main Jan 13, 2025
73 checks passed
Copy link
Contributor

🚀 This is included in version v3.17.0

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

Successfully merging this pull request may close these issues.

2 participants