开发者

Tapping into built in textarea undo/redo stack

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜