WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.5k stars 4.19k forks source link

Editor History: Site title and tagline blocks undo one character at a time #37171

Open jeyip opened 2 years ago

jeyip commented 2 years ago

Description

Undoing a site tagline or site title block reverts text one character at a time instead of in larger "chunks" like in the paragraph block.

Step-by-step reproduction instructions

Block Editor

  1. Navigate to the post editor
  2. Add a site tagline or site title block
  3. Add text to the site tagline
  4. Undo the changes
  5. Verify that reversions occur one character at a time

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 a site tagline or site title block
  4. Add text to the site tagline
  5. Undo the changes
  6. Verify that reversions occur one character at a time

Screenshots, screen recording, code snippet

Site tagline block not working 2021-12-06 17 14 16

Paragraph block working 2021-12-06 19 47 47

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

ndiego commented 1 year ago

I can confirm this is still an issue in Gutenberg trunk as of today.

paulopmt1 commented 1 year ago

Hey @youknowriad and @ellatrix, I'm learning Gutenberg in my 20% time and I'm curious about your feedback on this POC for fixing this title issue.