Prevent block variations and filters from polluting the entire block editor
-
Hi, my plugin consists of multiple blocks:
- One container block
- Multiple inner blocks inside that container block
I want to use block variations and block filters (based on core blocks) INSIDE my container block. The problem is the modifications are applied to core blocks that are inside and OUTSIDE of my plugin’s container block.
In other words, I want to apply block filters and variations only to my plugin’s blocks, not blocks outside of my plugin.
I tried making a variation and using
addFilter
to add aparent
property to that variation, hoping that variation is restricted to my container block. It didn’t work!addFilter
only works on original blocks.How to limit the modifications to only my plugin’s blocks?
Thanks!
- The topic ‘Prevent block variations and filters from polluting the entire block editor’ is closed to new replies.