diff --git a/docs/modules/Blocks.md b/docs/modules/Blocks.md index ef0189244..9e6786c7d 100644 --- a/docs/modules/Blocks.md +++ b/docs/modules/Blocks.md @@ -12,6 +12,9 @@ The default UI is a lightweight component with built-in Drag & Drop support, but ::: warning To get a better understanding of the content in this guide, we recommend reading [Components] first ::: +::: warning +This guide is referring to GrapesJS v0.17.27 or higher +::: [[toc]] @@ -221,7 +224,21 @@ Don't put non serializable properties, like functions, in your blocks, keep them ``` This will work, but if you try to save and reload a stored project, those will disappear. - +### Avoid styles +Don't put styles in your blocks. +```js +// Your block +{ + content: [ + { type: 'my-cmp', styles: '.cmp { color: red }' }, + ` +