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: MaxLengthPlugin does not highlight extra characters properly in rich text editor with multiple paragraphs #6329

Open
dbuhon opened this issue Jun 22, 2024 · 1 comment

Comments

@dbuhon
Copy link

dbuhon commented Jun 22, 2024

The MaxLengthPlugin does not highlight extra characters properly in rich text editor with multiple paragraphs.

Screen.Recording.2024-06-22.at.12.54.09.PM.mov

Lexical version:
0.16.0

Steps To Reproduce

  1. In the Playground, select Rich Text, and Char Limit
  2. Press Enter a couple times
  3. Write some text

The current behavior

The extra characters highlighted in red do not correspond to the remaining char count.

The expected behavior

Should work the same for the RichTextPlugin as for the PlainTextPlugin.

@2wheeh
Copy link
Contributor

2wheeh commented Jun 24, 2024

duplicate of #4914.

I've found this comment:

we're planning to release a brand new version of the CharacterLimitPlugin in the upcoming weeks.

But still waiting the new version of it...

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