Pasting valid Gutenberg block markup throws a "unexpected or invalid mark-up" error #2475
Open
4 tasks done
Labels
[Priority] Low
This issue/pull request is not immediate
[Type] Bug
Something that is not working as expected
Describe the bug:
I should be able to paste some valid Gutenberg block-markup into the editor without it erroring.
To reproduce:
The problem isn't limited to heading blocks, the same happens for paragraphs too (and probably more).
Expected behavior:
I expected a Heading block to be inserted without any mention of unexpected errors.
Screenshots:
Console output says:
I think applyStyle is taking the fontFamily block attribute and putting it into the style prop, even though that's not necessary in Core.
Isolating the problem:
WordPress version:
6.2
Gutenberg version:
Either trunk at the time of writing, GB1.15 or whatever WP6.2 ships.
The text was updated successfully, but these errors were encountered: