开发者

Tapping into built in textarea undo/redo stack

开发者 https://www.devze.com 2023-04-12 18:57 出处:网络
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

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 ue开发者_运维百科d?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号