lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: MaxLengthPlugin does not highlight extra characters properly in rich text editor with multiple paragraphs

Open dbuhon opened this issue 1 year ago • 1 comments

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

  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.

dbuhon avatar Jun 22 '24 16:06 dbuhon

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...

2wheeh avatar Jun 24 '24 03:06 2wheeh