lexical
lexical copied to clipboard
Bug: MaxLengthPlugin does not highlight extra characters properly in rich text editor with multiple paragraphs
The MaxLengthPlugin does not highlight extra characters properly in rich text editor with multiple paragraphs.
https://github.com/facebook/lexical/assets/7802120/4f6601f0-88a6-4076-8f74-9308c300eae5
Lexical version: 0.16.0
Steps To Reproduce
- In the Playground, select Rich Text, and Char Limit
- Press Enter a couple times
- 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.
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...