Skip to content

Undo goes 2 steps back in combination with custom buttons #4870

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

Open
trytosend opened this issue Jan 31, 2025 · 0 comments
Open

Undo goes 2 steps back in combination with custom buttons #4870

trytosend opened this issue Jan 31, 2025 · 0 comments

Comments

@trytosend
Copy link

Expected behavior.
Using custom buttons in combination with Undo should always go just one step back

Actual behavior.
When using custom button in combination with undo button multiple times, undo goes back 2 steps instead of just one

Steps to reproduce the problem.
https://froala.com/wysiwyg-editor/examples/custom-buttons/
1.) add some more text in your example
2.) delete
3.) undo
4.) delete
5.) undo

It will go two steps back (even redo button is available and when pressed, it correctly follows the undo stack)

Editor version.
Latest version

OS.
Windows

Browser.
Chrome, Edge, Firefox

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

No branches or pull requests

1 participant