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

Bug: LexicalCharacterLimitPlugin CHARACTER_LIMIT - 5 (hardcoded) cant be changed #3648

Closed
xjjda22 opened this issue Dec 28, 2022 · 1 comment

Comments

@xjjda22
Copy link
Contributor

xjjda22 commented Dec 28, 2022

Lexical version:v0.7.5

Steps To Reproduce

  1. try lexical playground and enable char limit from the options
  2. CHARACTER_LIMIT is fixed to 5 and cant be changed

Link to code example:

The expected behavior

CHARACTER_LIMIT should be through the plugin props, similar to MaxLengthPlugin

reference to CharacterLimitPlugin -

<CharacterLimitPlugin charset={isCharLimit ? 'UTF-16' : 'UTF-8'} />

reference to MaxLengthPlugin -

{isMaxLength && <MaxLengthPlugin maxLength={30} />}

@trueadm
Copy link
Collaborator

trueadm commented Jan 3, 2023

Fixed in #3649

@trueadm trueadm closed this as completed Jan 3, 2023
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

No branches or pull requests

2 participants