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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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.

1 participant