Style are repeating when i am created second block pls check my screenshot and explain it #4260
Unanswered
senthil177cse
asked this question in
Q&A
Replies: 1 comment 2 replies
-
https://grapesjs.com/docs/modules/Selectors.html#component-first-selectors |
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 created first column and i have added styles using style manager properties. but when i am dragged the blocks second time styles are repeating what was the issue for that below i have mentioned my custom block code...
this.editor.BlockManager.add('custom_first_block', {

label: '1 Column',
order: 1,
category: 'Layout Block',
editable: true,
draggable: true,
attributes: {
class: 'gjs-fonts gjs-f-b1 gjs-block gjs-one-bg',
},
content:
<header><div class="row"><div class="col-12">Hello senthil</div></div></header>
,})
;
Beta Was this translation helpful? Give feedback.
All reactions