Gutenberg and FSE: How to exclude a block from full site editing


One of my blocks only works in posts. It does not make sense to use it on the homepage. Another thing my block does not support is multiple instances on the same post id. I could prevent that with:

"supports": {
        "multiple": false

in block.json. How can I allow the block being used only on pages and posts but not in FSE?

Marc 2 years 2022-01-19T11:09:23-05:00 0 Answers 0 views 0

Leave an answer