Issue #2427💬 AnsweredOpened November 25, 2019by senchden0 reactions

Add toolbar redraw functionality

Quick answerby artf

Closing this as the update of the toolbar is already in place

Read full answer below ↓

Question

If a selected model toolbar is being changed dynamically (adding a button, removing a button, etc.), the change is not being reflected visually unless the whole component is being redrawn. I think it would be nice to have a capability to see the change in toolbar property being rendered visually (automatic or manual).

Answers (1)

artfApril 13, 2022

Closing this as the update of the toolbar is already in place

const selected = editor.getSelected();
selected.set('toolbar', selected.get('toolbar').splice(1))

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.