Select element that has several blocks as one unit.
Question
I've created new block (like form or dialog, etc) that has several blocks such as search box, button, text fields, ... This element doesn't need to editable. I just want to select this whole block as one unit. Thanks.
Answers (3)
You might want to use propagate to inject indicated properties from component to its children
bm.add('your-block', {
label: 'lol',
// ...
content: `<div>
<div data-gjs-selectable="false" data-gjs-hoverable="false" data-gjs-propagate='["selectable", "hoverable"]'>
<div>Text 1</div>
<div>Text 2</div>
<div>Text 3</div>
</div>
</div>`,
})
Thanks. That's just what I want to do.
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #921
[QUESTION] Select and focus an html element from a panel button
Hi everyone, Is it possible to set focus in a section html with Grapes, like as an anchor? I have a panel button and it just select the sec...
Issue #1639
[Question]: Would it be possible to have change settings under style manager in a way that it has href when a link is created?
I'm using preset newsletter with built-in RTE (do not want to use ck editor like the demo) In order to make any text to link, i need to cli...
Issue #657
Setting values of hidden fields
I have an issue with hidden fields inside a form element, I want to select the form in the editor and then change the values of the hidden...
Issue #1137
Cant make Text Block not editable and style able at the same time !
Demo / reproduce problem https://jsfiddle.net/shareefhiasat/u8Lodyh7/1/ Question Not sure if its bug or i dont know how to get the desired...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.