<body> shouldn't be badgeable / selectable
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?

Answers (3)
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.
@ryandeba,
I'm sure you can imagine how silly I feel now. Grade A solution, thanks!
You're welcome! Glad I was able to help.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1877
[FEATURE REQUEST] Custom styles that add/remove custom classes?
Currently, all the style manager values that you change for an element simply update a <style> tag inline in the HTML. Is it possible to ch...
Issue #1733
How to remove script tag which is added by add block manager script
Hello @artf I want to export final/production based html content excluding the script(Only which is added by block manager). Suppose i am a...
Issue #1645
[QUESTIONS] Move panel to the left
Hi grapesjs team, I am trying to move BlockManager, StyleManager, TraitManager etc to the left. I have tried to use appendTo but I don't kn...
Issue #1712
Header and footer
I'm thinking about adding multiple page with header and footer Currently I have an idea on how to implement the multiple page but I don't k...
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.