Issue #729💬 AnsweredOpened January 9, 2018by austinbiggs1 reactions

<body> shouldn't be badgeable / selectable

快速解答by ryandeba1

Hi @AustinTBiggs, This works for me in the demo: editor.DomComponents.getWrapper().set({badgable: false, selectable: false}) You may also want to set hoverable to false if don't want the blue highlight to appear on hover.

Read full answer below ↓

Question

I'm currently trying to remove the badgeable and selectable permissions from the <body> tag. I've tried setting the gjs-editable, gjs-badgeable, etc. permissions and nothing seems to the the trick. How would you suggest approaching this?

screen shot 2018-01-08 at 3 47 21 pm

Answers (3)

ryandebaJanuary 9, 2018

Hi @AustinTBiggs,

This works for me in the demo: editor.DomComponents.getWrapper().set({badgable: false, selectable: false})

You may also want to set hoverable to false if don't want the blue highlight to appear on hover.

austinbiggsJanuary 9, 2018

@ryandeba,

I'm sure you can imagine how silly I feel now. Grade A solution, thanks!

ryandebaJanuary 9, 2018

You're welcome! Glad I was able to help.

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.