Issue #3444💬 AnsweredOpened May 8, 2021by mahfuzdiu0 reactions

RemoveButton() causing error

Quick answerby mahfuzdiu

I hid it with custom css editor.Panels.getButton('options', 'fullscreen').attributes.className = 'hidepanelbtn' btw a proper solution would be nice.

Read full answer below ↓

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. Capture How to solve it?

Answers (4)

mahfuzdiuMay 8, 2021

I hid it with custom css editor.Panels.getButton('options', 'fullscreen').attributes.className = 'hide_panel_btn' btw a proper solution would be nice.

artfMay 20, 2021

Hi @mahfuzdiu by doing so on the official demo, it works with no errors, are you able to create a reproducible demo?

no-response[bot]May 30, 2021

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

GJSBlockMay 17, 2026

Thanks for reporting this, @mahfuzdiu. Great question about removeButton() causing error. The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method Most operations can be achie...

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.