mditor icon indicating copy to clipboard operation
mditor copied to clipboard

历史记录及其快捷键

Open woodensail opened this issue 10 years ago • 3 comments

加上历史记录的功能,最好能支持Ctrl+z,Ctrl+y(Ctrl+Shif+z).

woodensail avatar Mar 16 '15 02:03 woodensail

历史记录功能已完成 Mditor demo:http://bh-lay.github.io/mditor/

相关文章: 简单的历史记录实现:http://bh-lay.com/blog/14c23552433

bh-lay avatar Mar 17 '15 02:03 bh-lay

撤销的判定有的问题,会导致回退到-1步。 把undo里的this.current < 0改成<=就可以了。

另外,当使用搜狗输入法输入中文时,似乎会在历史记录中插入额外的操作,具体原因不明。

woodensail avatar Mar 17 '15 02:03 woodensail

回退细节已修复,见下面的change https://github.com/bh-lay/mditor/commit/96f0c2a9eca13016924b247a6aee45f11078e08a

中文输入,暂不清楚过程细节,日后再做调整!

bh-lay avatar Apr 07 '15 01:04 bh-lay