Reset the $redoStack of the undoManager once a delta is executed. Add Range.setStart/setEnd.
This commit is contained in:
parent
e871700e2e
commit
86a0e98c36
2 changed files with 21 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ var UndoManager = function() {
|
|||
var deltas = options.args[0];
|
||||
this.$doc = options.args[1];
|
||||
this.$undoStack.push(deltas);
|
||||
this.$redoStack = [];
|
||||
};
|
||||
|
||||
this.undo = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue