[wp-trac] [WordPress Trac] #64179: "Edit as HTML" broken if block has Highlighted markup

WordPress Trac noreply at wordpress.org
Fri Oct 31 16:49:03 UTC 2025


#64179: "Edit as HTML" broken if block has Highlighted markup
--------------------------+-----------------------------
 Reporter:  korynorthrop  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  6.8.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64179>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list