defautl class on block
I'm trying to add a custom block
and work fine, except that the styles attributes are set to a default class, for example
i want those css attributes be set to the class i'm setting in the classes attribute ('header-banner') how can i do that?
To achieve this, you need to add the style separated from the block and set the classes to the block. Look for example how this is done in the basic blocks plugin: https://github.com/artf/grapesjs-blocks-basic/blob/master/src/index.js#L29
You can also do this
content: `
<div class="header-banner">...</div>
<style>
.header-banner {
...
}
</style>
`
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.