Make WordPress Core

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

"Edit as HTML" broken if block has Highlighted markup

Reported by: korynorthrop Owned by:
Priority: normal Milestone:
Component: Editor Version: 6.8.3
Severity: normal Keywords:
Cc: Focuses:

Description

If all of the text inside of a block (e.g. Paragraph or List Item) has a background highlight applied to it (from the block formatting menu) and then you try to "Edit as HTML" the "This block has encountered an error and cannot be previewed." error will come up. However, if you remove the Highlight then choose to "Edit as HTML" it works fine. This bug only seems to happen when the background highlight is applied, not the text highlight and it seems like it only happen when all of the copy has the background highlight, not just some of the text.

Attachments (1)

highlighting bug.gif​ (1.3 MB ) - added by korynorthrop 12 months ago.
Screen recording showing the issue

Download all attachments as: .zip

Change History (2)

@korynorthrop
12 months ago

Screen recording showing the issue

#1 @wildworks
12 months ago

  • Component Formatting → Editor
  • Milestone Awaiting Review
  • Resolution → reported-upstream
  • Status new → closed

Thanks for the report. I was able to replicate the problem.

I have reported this issue to the Gutenberg project, so I will close this ticket.

​https://github.com/WordPress/gutenberg/issues/72897

Note: See TracTickets for help on using tickets.