Issue #1336πŸ’¬ AnsweredOpened August 3, 2018by emilsedgh0 reactions

Can I make everything unselectable by default?

Quick answerby YashPrince

Hello @emilsedgh Please check the below code it may help you.

Read full answer below ↓

Question

Currently all components are selectable/hoverable by default.

And if you want you can change that behavior by providing data-gjs-hoverable=fase in the template.

Is there any way to change this so selectable/hoverable is false by default, unless data-gjs-hoverable=true is provided?

Thank you btw. Grapes is amazing.

Answers (3)

YashPrinceβ€’ August 4, 2018

Hello @emilsedgh Please check the below code it may help you.

emilsedghβ€’ August 4, 2018

Thank you very much @YashPrince

I suppose I can use a custom data attribute to exclude the ones I want to be editable right?

Feel free to close this question btw. Thanks for answering.

lock[bot]β€’ September 17, 2019

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.