ea.getAllowedBlocks


Description

Sets a list of blocks allowed to apply BlockStyles.

Arguments

  • allowedBlocks – array – list of allowed blocks (string)

Located

src/constants.js

Example

addFilter(
    'ea.getAllowedBlocks',
    'namespace',
    (blocks) => [...blocks, "new-block-namespace/block-name"]
);