removeButton() causing error
Question
Hi,
I'm trying to remove a button from panel using this code editor.Panels.removeButton('options', 'fullscreen') . It removes the button but gives me this error.
How to solve it?
Answers (3)
I hid it with custom css editor.Panels.getButton('options', 'fullscreen').attributes.className = 'hide_panel_btn' btw a proper solution would be nice.
Hi @mahfuzdiu by doing so on the official demo, it works with no errors, are you able to create a reproducible demo?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5141
BUG: component resets attribute values on updating traits ( first time only )
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 113.0.5672.63 Reproducible...
Issue #3075
BUG: Unhandled Rejection (TypeError): i.classList is undefined
Hi. I updated GrapesJS to its current version 0.16.22 and I get an error on the callback function: editor.on("component:add", (model) => {...
Issue #1402
Translate Panel options and DeviceManager buttons
Helllo @artf , How to translate the Panels and DeviceManager button titles to other languages? Please write example for me. 'FullScreen' ->...
Issue #4919
BUG: calling destroy method breaks the editor ( React app )
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 109.0.5414.119 Reproducible demo li...
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.