日期:2014-05-16  浏览次数:20324 次

js如何实现多步的撤销反撤销功能 要iframe中实现
<div id="htmlEditorPanel" style="border:1px solid #bbb;border-top:0px;"><iframe class="HtmlEditor" id="HtmlEditor" name="HtmlEditor" style="height:100%;width:100%;margin:0px;padding:0px 0px 0px 0px;" frameborder="0" marginHeight="0" marginwidth="0" src="../blank.html" onload="undoRedo();SetEdit();"></iframe></div>

在这个iframe当中实现撤销反撤销 求大神指导  我是实在没有办法了。。
JavaScript 撤销重复 ?撤销反撤销? js撤销 js实现撤销重复

------解决方案--------------------
iframe编辑器??

ifr_doc.execCommand('Undo',false,param); //撤销
ifr_doc.execCommand('Redo',false,param); //重做

------解决方案--------------------
cache里写history
------解决方案--------------------
引用:
没人回复么 真的没人回复么


电脑没那么智能,哪知道你要恢复到哪步

只能提供1#的返回或者重做一次的代码,给别人返回或者重做到他需要的步骤去