Skip to content
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

[Feature Request] provide way to expose quills undo redo stacks. #1381

Open
krishnaprasadgandrath-nooor opened this issue Aug 28, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@krishnaprasadgandrath-nooor

I want to access quill controller's history changes so that i can integrate quill's undo redo operations with whole app's undo redo operations.

@EchoEllet EchoEllet self-assigned this Nov 8, 2023
@EchoEllet EchoEllet added the enhancement New feature or request label Nov 8, 2023
@EchoEllet EchoEllet removed their assignment Dec 10, 2024
@JulienElkaim
Copy link

JulienElkaim commented Dec 27, 2024

any news on this one?

Seems like if I want to store the history as well, it would be enough to store the lists of undo / redo from the History object ?

controller.document.history.stack.undo
controller.document.history.stack.redo

And as we can set the values in HistoryStack, when we load from database, we can just set them after creating the controller from the deltaJSON. means we would store:

controller.document.toDelta().toJson()
controller.document.history.stack.undo
controller.document.history.stack.redo

the History#_change method does not seem to conflict with this idea. Any other limitations? @EchoEllet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants