Handle invalid blocks without modifying their markup #1736
Labels
[Feature] Blocks
Overall functionality of blocks
[Priority] High
Used to indicate top priority items that need quick attention
We need to detect blocks with invalid markup (e.g. added classnames, added or removed tags).
One way to do this (idea from @mtias): Detect "invalid" blocks by re-serializing blocks that we see in the editor. If it changes beyond a certain threshold (e.g. whitespace doesn't matter), then show the block as a
core/html
block and highlight how the markup would be changed.Like #1735 it is important that the default "save" operation not alter the markup inside the block.
The text was updated successfully, but these errors were encountered: