Skip to content

Commit

Permalink
feat: Integrate with @kitconcept/volto-blocks-grid, allowing our bloc…
Browse files Browse the repository at this point in the history
…ks to be added to grids.
  • Loading branch information
ericof committed Feb 24, 2023
1 parent 0cfedca commit 7823232
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ const applyConfig = (config) => {
},
};

// Check for @kitconcept/volto-blocks-grid
const gridBlock = config.blocks.blocksConfig.__grid;
if (gridBlock !== undefined) {
config.blocks.blocksConfig.__grid.gridAllowedBlocks = [
...gridBlock.gridAllowedBlocks,
'codeBlock',
'mermaidBlock',
];
}

return config;
};

Expand Down

0 comments on commit 7823232

Please sign in to comment.