Jump to content

Browser Undo For Textarea


Heretic86
 Share

Recommended Posts

Not quite game related (directly), just a simple form.

In my form, I have an Event Listener for Paste Events, then handle the Paste data the way I want.

Trouble is that once I do that and use e.preventDefault() and textarea.value = modifiedString to set the value, I am no longer able to use the browser feature of CTRL+Z to undo changes.  Like it records some Event?  Mutation?  What am I doing wrong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...