简体   繁体   English

利用内置的textarea撤消/重做堆栈

[英]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. 文本区域和可编辑的iframe内置了撤消/重做功能,但是在插入特定内容时,这些内容无法撤消,因为它们不会出现在撤消缓冲区内。 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? 有什么方法可以将自定义状态插入到撤消/重做缓冲区中,或者一旦这样做,就必须使用一种总的自定义方法?

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. 但是,WHATWG正在指定一个API来执行此操作。 It will be a while before it's available in browsers. 在浏览器中尚需一段时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM