-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Inconsistent behavior upon inserting soft newlines with RichUtils #104
Comments
Ahh, I forgot about that double newline bug. I would like to solve that. For pasting, I think I have a solution for that. I'm on mobile now but will look around for it when I'm back at my laptop. I think you could also probably allow the multiple blocks and define a decorator that is aware of character counts. Can try to gist something later. |
#255 attempts solve the double newline bug |
@wcjohnson Is still still an issue with the latest version? |
Closing; let me know if it's not fixed and we'll reopen. |
Hi @hellendag, I would love to hear from your idea on how to prevent draft from creating additional blocks when pasting text (containing newlines)? ;) Like the OP, I'm trying to highlight overlength text. Is there a simple solution on preventing draft from creating multiple blocks at all? I feel like having the text split up over several blocks only adds overhead and makes text manipulation less flexible in a scenario like the present. Thanks a lot! |
This issue is a result from following the advice of @hellendag in #92 regarding handleReturn(). It appears to be unrelated to #92 so I am creating a new issue.
I am trying to use Draft to reproduce the behavior of a Twitter input box, where it will highlight characters beyond 140 in red. The following minimal example is based on the advice from #92 and the original tweet sample code:
This test case exhibits two issues:
The text was updated successfully, but these errors were encountered: