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

Clear undo history when initialising an editor #92

Closed
wants to merge 1 commit into from

Conversation

johngodley
Copy link
Member

The custom undo history has always had a problem with the initial content being undoable. This did actually match core Gutenberg, but it has since fixed the problem.

This fix clears the history when the editor is initialised, meaning there is nothing to undo. I'm not super happy with this as a solution, but I think it's better to spend the time looking at #30 than trying to fix something that I hope will disappear.

I need to run some more tests here before I'm happy.

Fixes #89

This ensures you can't undo the initialisation.
@johngodley johngodley closed this Oct 16, 2023
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

Successfully merging this pull request may close these issues.

onLoad content is added to undo stack
1 participant