Set text background highlight color, then try Edit as HTML, block gives error #39861
Labels
[Feature] Rich Text
Related to the Rich Text component that allows developers to render a contenteditable
[Type] Bug
An existing feature does not function as intended
Description
Setting the background color (using the highlight function), and then trying to edit the paragraph as HTML, gives the error:
This block has encountered an error and cannot be previewed
and the block is not recoverable, unless by copy pasting and removing the mark tag.
This does not happen with the foreground / actual text color.
Not the same problem of #36532
Step-by-step reproduction instructions
This block has encountered an error and cannot be previewed
and it's not recoverable.
Screenshots, screen recording, code snippet
Environment info
Last version 5.9.2
Tried with no plugins.
Firefox 98.0.2, 64bit.
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
The text was updated successfully, but these errors were encountered: