WordPress / gutenberg

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

Merging two blocks then separating them does not work properly #35765

Open RobinRoelofsen opened 3 years ago

RobinRoelofsen commented 3 years ago

Description

I run a newspaper site where people can send in press releases. When cleaning those releases, sometimes I need to merge two paragraphs and then separate them. I stand at the end of the first paragraph, press the Delete button to merge the first with the second paragraph and then press Enter to separate them.

When I press Enter, the text from the second paragraph is gone. When I press Ctrl-Z to get the text back and then again hit Enter, it works as it should. Used to work without a hitch before - I think - 5.8.

Step-by-step reproduction instructions

  1. open a post
  2. place the cursor at the end of the first text block (heading or paragraph)
  3. press Delete to merge the first and the second block
  4. press Enter to separate them again
  5. the text of the second block is gone
  6. now press Ctrl-Z and the text of the second block reappears
  7. press Enter again and the two blocks are as they schould be

Screenshots, screen recording, code snippet

https://www.loom.com/share/ceee59535a614f9fa8e1eba68873abe1

Environment info

WordPress version 5.8.1 Browsers: Chrome and Edge Issue does not show on beta 5.8.2

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

carolinan commented 3 years ago

I can confirm this issue, it is a common problem for me when I edit texts, I would love to see this fixed.

Mamaduka commented 3 years ago

@carolinan I are still able to reproduce the issue on the current Gutenberg trunk?

Merging and separation are working for me as expected. I'm wondering if I'm missing a step here.

ellatrix commented 1 year ago

I also cannot reproduce. Would be good to have exact steps to reproduce from an empty post.