Draft-js: how to listen onSelect text

Created on 26 Sep 2018  路  2Comments  路  Source: facebook/draft-js

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.

What is the expected behavior?

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

support

Most helpful comment

It seems like you should be able to use the onChange handler to determine if text is being selected. There's an example of listening to a content change vs a selection in this comment. And another example in this thread.

All 2 comments

It seems like you should be able to use the onChange handler to determine if text is being selected. There's an example of listening to a content change vs a selection in this comment. And another example in this thread.

Looks like this is resolved - please reopen if you have further questions.

Was this page helpful?
0 / 5 - 0 ratings