Validation for UseOnce blocks when switching from code to visual #4932
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Feature] Blocks
Overall functionality of blocks
[Type] Enhancement
A suggestion for improvement.
Issue Overview
I can add multiple instances of a
UseOnce
block to a post by copy-pasting in the code editor. They don't get removed when switching back to the visual editor (or when publishing the post).Steps to Reproduce (for bugs)
Gutenberg 2.1 + WP 4.9.4
Expected Behavior
To run validation when switching back from the code editor to remove the extra blocks, or show some sort of notice.
Pinging @mcsf as we discussed this during the core-editor chat.
The text was updated successfully, but these errors were encountered: