Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo & redo once text inserted using range #3

Open
vikynandha-zz opened this issue Oct 15, 2014 · 1 comment
Open

Undo & redo once text inserted using range #3

vikynandha-zz opened this issue Oct 15, 2014 · 1 comment

Comments

@vikynandha-zz
Copy link

Once a textarea's value is modified programmatically, the undo-redo history is lost for the textarea and Ctrl+z doesn't work anymore.

There seems to be a solution to this: http://stackoverflow.com/a/13597044/767685. This solution worked in my Chrome 38, but I haven't tested it across browsers.

@vikynandha-zz
Copy link
Author

Sorry, it looks like the solution doesn't work in Firefox and Opera [1]. So, this has to be done conditionally with feature detection.

[1] http://help.dottoro.com/ljuecqgv.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant