Styles repeating the custom blocks #4181
Unanswered
senthil177cse
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Avoid styles in blocks, create a custom component with styles |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i have added custom block but if add any styles like width and background color for that block repeating the styles for next block if i create.. so can you please help how to resolve that issue?
editor.BlockManager.add('custom_first_block', {
label: '1 Column',
order: 1,
category: 'Basic Block',
attributes: {
class: 'gjs-fonts gjs-f-b1 gjs-block gjs-one-bg',
},
content:
<div class="row"><div class="col-12">1 Column</div></div>
,});
Beta Was this translation helpful? Give feedback.
All reactions