Make WordPress Core

#57942 closed defect (bug) (reported-upstream)

DELETE key cannot be used for marging paragraphs, Backspace use wrong block type

Reported by: thomask's profile thomask Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.2
Component: Editor Keywords:
Focuses: Cc:

Description

In every editor on Windows, if you have two consecutive paragraphs and you press Delete at the end of the first one, the paragraphs are merged. In WordPress it does not work.

Also Backspace behave wrongly - if you have e.g empty Header and then Paragraph and you click Backspace at the beginning of the paragraph, it merges content with the Header, so the result will be the Header with the content of previous paragraph. All windows editors in history will delete empty header in that case and the result would be the original paragraph.

These two erroneous behaviors are for me the biggest annoyance of the Gutenberg editor, because they are quite common in other editors and here it suddenly behaves differently and one has to look for some other shortcuts or reach for the mouse.

Change History (2)

This ticket was mentioned in Slack in #core-editor by tobifjellner. View the logs.


12 months ago

#2 @costdev
12 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Hi @thomask, thanks for opening this ticket!

In every editor on Windows, if you have two consecutive paragraphs and you press Delete at the end of the first one, the paragraphs are merged. In WordPress it does not work.

I tested with:

  • OS: Windows
  • Browsers: Chrome, Firefox and Edge
  • WordPress: 6.1.1, trunk, trunk with Gutenberg trunk

In all of the above, the two paragraphs were merged.

Also Backspace behave wrongly - if you have e.g empty Header and then Paragraph and you click Backspace at the beginning of the paragraph, it merges content with the Header, so the result will be the Header with the content of previous paragraph. All windows editors in history will delete empty header in that case and the result would be the original paragraph.

This is reproducible, and behaviour is different between Classic Editor and the Block Editor. This appears to have been reported upstream on the Gutenberg repository. See this issue and let's continue the discussion there! 🙂


For your future reference, problems in Gutenberg are tracked via GitHub issues, not Trac tickets. If an issue only occurs in the Block Editor/Site Editor/Gutenberg plugin, look at the open issues and if it doesn't exist, open a new issue directly on the Gutenberg repository.


I'll close this ticket as reported-upstream as only one of the two reported issues was reproducible, and the other has been reported upstream. Have a look at the open issues and see if the paragraph merging issue has been reported. If not, open a new issue to report this.

Note: See TracTickets for help on using tickets.