2

Textareas and editable iframes have built in undo/redo, but when inserting specific contents, those cannot be undone, since they do not appear inside the undo buffer. Is there any way to insert custom states into the undo/redo buffer or once you have done so, a total custom approach must be ued?

1
  • 2
    12 years later and there still doesn't seem to be a native way of doing this. Commented Aug 23, 2023 at 10:06

1 Answer 1

1

Thee's no way to manipulate the browser's built-in undo stack. However, work is under way in WHATWG to specify an API to do this. It will be a while before it's available in browsers.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.