Hello
While pasting the content, we can get the pasted content in onPasteRawText but then again editOnPaste handles the pasted data. My usecase is something like this:
I have a input where when a user types a comma separated values, I convert them into entities(immutable) and decorate them to look like this which I have done.

But the same steps need to be done to the pasted data. I might be missing something on how to handle the pasted data.
Any help would be appreciated.
Thanks
Hmm. onPasteRawText could possibly be a canceling handler, i.e. handlePastedText. Then you would be able to return true if you handle the paste yourself.
Yes. Something like handleBeforeInput is a cancelling event.
I would be fine with this. Would you like to submit a PR to replace onPasteRawText with handlePastedText?
Sure. I will do the changes and submit the PR.
@hingermayank thanks for adding handlePastedText. Are there are any examples of how to use it? The docs are a little sparse...
Found an example of handlePastedText for anyone searching in the future: https://github.com/facebook/draft-js/issues/416#issuecomment-221639163
Most helpful comment
Found an example of
handlePastedTextfor anyone searching in the future: https://github.com/facebook/draft-js/issues/416#issuecomment-221639163