-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Way to bundle change updates, so they get undo-ed together #1456
Comments
Was just asking about this. Would love a method for this. |
I haven't looked into the internals but just wanted to start a discussion of how the developer might bundle actions together. In my opinion, it should work something like this:
I like this because by default the editor should normally just do the right thing (I think). |
Doesn't it merge everything right now? There's also a |
LOL! Yeah, it does exactly that. Because of the comment earlier about deleting multiple texts, I assumed it was saying that it chunked them more granularly by default. |
@ianstormtaylor could you provide a link to the merge flag implementation or to the docs? I couln't find anything about that. |
I'm using the |
@ianstormtaylor any news on this one? |
A workaround has been made for this, but it would still be interesting that deleteAtRange undoing would act more like removeNodeByKey undoing. |
I believe that this may be fixed by #3093, which has changed a lot of the logic in Slate and |
Do you want to request a feature or report a bug?
I would to request a feature
What's the current behavior?
Currently, there is no way to bundle change operation together so they get undo-ed at the same time.
What's the expected behavior?
It would be useful, especially when using a table, to have operation done on multiple cells be undo-ed all at the same time ( for example, when you delete text from multiple cells, undo would undo all the deletes, not just the first )
The text was updated successfully, but these errors were encountered: