Issue #2469💬 AnsweredOpened December 24, 2019by simplecommerce1 reactions

Adding buttons to RTE toolbar in React App causes buttons to be duplicated.

Quick answerby artf1

Ok, seems like we don't clear the RTE instance in the destroy method... I'll fix it for the next release

Read full answer below ↓

Question

Are you using the latest release (older versions are NOT supported)? YES, 0.15.9Are you facing the bug with your local copy of GrapesJS or with the current demo?Local copyAre you able to reproduce the bug from the demo?No, not React app.What is the expected behavior?Toolbar buttons should only be added once on load of editor.What happens instead?When navigating away and coming back to the editor, the toolbar buttons are duplicated, as many times as navigation is done.If you're able to reproduce the bug indicate all the necessary steps Attach screenshots (using KAP/LICEcap), screencasts or liv...

Answers (2)

artfDecember 25, 2019

Ok, seems like we don't clear the RTE instance in the destroy method... I'll fix it for the next release

simplecommerceDecember 24, 2019

For now, I have to do rte.remove before my rte.add so it doesn't duplicate.

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.