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

Editor History: Undo doesn't work immediately after publishing / saving #37195

Closed
jeyip opened this issue Dec 7, 2021 · 0 comments · Fixed by #37840
Closed

Editor History: Undo doesn't work immediately after publishing / saving #37195

jeyip opened this issue Dec 7, 2021 · 0 comments · Fixed by #37840
Assignees
Labels
[Feature] History History, undo, redo, revisions, autosave. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@jeyip
Copy link
Contributor

jeyip commented Dec 7, 2021

Description

Undoing immediately after publishing a post in the post editor or saving in the site editor does not work. Undo levels appear to be completely reset.

I can see that this might be deliberate, but what's strange is that adding a few blocks and additional changes after publishing or saving appears to allow undoing / redoing any revision again.

Step-by-step reproduction instructions

Block Editor

  1. Navigate to the post editor
  2. Add text to a paragraph block
  3. In the paragraph block's block settings menu, update line height
  4. Update font size
  5. Undo until the text and typography updates are gone
  6. Redo until you return to the current revision
  7. Verify that font-size isn't restored

Site Editor

  1. Enable full site editing by activating the Gutenberg plugin and an FSE enabled theme (Ex. Quadrat)
  2. Navigate to the site editor
  3. Add text to a paragraph block
  4. In the paragraph block's block settings menu, update line height
  5. Update font size
  6. Undo until the text and typography updates are gone
  7. Redo until you return to the current revision
  8. Verify that font-size isn't restored

Screenshots, screen recording, code snippet

2021-12-07 10 32 59

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@jeyip jeyip added [Type] Bug An existing feature does not function as intended [Feature] History History, undo, redo, revisions, autosave. labels Dec 7, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] History History, undo, redo, revisions, autosave. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants