Make outer element unselectable
Question
I'm trying to make the outer element not selectable, and the inner one selectable only
editor.BlockManager.add('full-width',
{
category:'Sections',
label: 'Full Width',
content: '<section class="row" data-gjs-droppable=".col" data-gjs-custom-name="Row" data-gjs-selectable="false" data-gjs-selectable="false">\n <div class="col col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center" data-gjs-draggable=".row" data-gjs-custom-name="Col"></div>\n</section>',
});
Outer element is the section tag and the inner one is the div, I need the section to be there for reasons, but I don't want it to be selectable
The data-gjs-selectable=false tag doesn't seem to be working for me, as the outer element is still selectable, I'd be grateful if anyone knew the correct syntax to achieve this, thanks
Answers (3)
https://jsfiddle.net/wswvuvab/2/
Seems to work properly (check your version), I added data-gjs-hoverable="false" property to prevent the highlighting box
Must be my version then, because its still selectable/hoverable, but it does accept data-gjs-highlightable="false", thanks for your help again
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 #1034
insert element or block inside parent element
Good day, i have component, have block i have Trait on listen changes, how can I add "h1 " inside that block "'<div class="container" style...
Issue #1817
Change HTML content while block is render in editor
Hello @artf I have one block into block manager like As per above script inside the block, i want to add dynamic HTML content while this bl...
Issue #1584
Not getting the Script of Block from editor.getComponents()
Below is the Component that I'm adding. this.editor.BlockManager.add('dob-mmyy-pii', { id: 'dob-mmyy', label: DOB (MM, YYYY) (PII), categor...
Issue #1722
[QUESTION] how to make my custom tag as selectable and editable inside of canvas ?
Hi, I try to change my custom tag of ion-item has div in view properties but It doesn't work for me as I expected. my custom Blocks is my c...
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.