-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undo the first time,but the history.stack.redo.length = 0? #1376
Comments
@OnlyBreak I am using the quill history module and I do not see this issue. It works as expected... |
Closing inactive issue. |
This is the relevant code from change(source, dest) {
if (this.stack[source].length === 0) return;
let delta = this.stack[source].pop();
this.lastRecorded = 0;
this.ignoreChange = true;
this.quill.updateContents(delta[source], Quill.sources.USER);
this.ignoreChange = false;
let index = getLastChangeIndex(delta[source]);
this.quill.setSelection(index);
this.stack[dest].push(delta);
} The destination stack length (redo when undoing, and vice versa) is updated after Should maybe |
…en 'editor-change' events are fired.
…editor-change' events are fired. (#1906)
monitor 'Quill.events.EDITOR_CHANGE', and undo the first time, but the history.stack.redo.length = 0?
Expected behavior:
undo the first time I expect the history.stack.redo.length !=0 , and i can do something...
Actual behavior:
quill.history.stack.redo.length = 0
Platforms:
chrome
Version
1.2.2
The text was updated successfully, but these errors were encountered: