0

I have a textarea and a button. Clicking the button causes text to be inserted into the textarea.

Is there a way to allow a user to press Ctrl/Cmd+z to undo the insertion of text and revert the textarea to its previous state?


I found original question here already but it's quite old and most upvoted answer won't work anymore for any major browser. What's 2017 approach for this?

Community
  • 1
  • 1
Peter
  • 16,453
  • 8
  • 51
  • 77

0 Answers0