Closed cgc closed 9 years ago
Woah, nice. Thanks! I'll take a look over the next few days (on holiday right now), and will merge as soon as possible.
This looks good, thanks.
There are security concerns pasting html. It should be escaped, as you've done, but indeed, we should allow the user to potentially override the escaping behaviour. I think it's possible with a onPaste
event, and the user can control paste behaviour in their parent component.
This PR implements the typical behavior for pasting into a textarea or input text box. It's a considerable departure from the current implementation, but it is well-tested and (I'd claim) more intuitive than the current behavior.
This implementation follows the following rules:
Open questions: