Issue #744Opened January 11, 2018by michaellwatson0 reactions

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)

artfJanuary 11, 20180 reactions

https://jsfiddle.net/wswvuvab/2/ Seems to work properly (check your version), I added data-gjs-hoverable="false" property to prevent the highlighting box

michaellwatsonJanuary 11, 20180 reactions

Must be my version then, because its still selectable/hoverable, but it does accept data-gjs-highlightable="false", thanks for your help again

lock[bot]September 18, 20190 reactions

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.