Adding buttons to RTE toolbar in React App causes buttons to be duplicated.
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)
Ok, seems like we don't clear the RTE instance in the destroy method... I'll fix it for the next release
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.
Issue #1941
When dragging a block over the canvas, JS in script, is appended in canvas before dropping the block.
You're submitting a BUG Are you using the latest release (older versions are NOT supported)? v0.14.57 Are you facing the bug with your loca...
Issue #2722
Highlight and toolbar positioned wrong on outside scroll
Are you using the latest release (older versions are NOT supported)? Yes Are you facing the bug with your local copy of GrapesJS or with th...
Issue #1411
Manual triggering of the asset manager rendering is required after opening the AM pop-up
Questions Q: Are you using the latest release (older versions are NOT supported)? A: Yes Q. Are you facing the bug with your local copy of...
Issue #3443
Backbone-undo/underscore security advisory
Version: v0.17.3 Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the expected behavior? See below What is the current...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.
Tutorial
GrapesJS DevTools: A Developer Panel Inside Your Editor
If you've ever debugged GrapesJS with console.log(editor.getSelected()) and a dozen throwaway event listeners β this post is for you.
Tutorial
How We Built Composeit in Record Time Using GrapesJS Shadcn
Bypass foundational builder boilerplate and focus on what truly matters.
Tutorial
Ship to Production Faster: Whatβs New in GrapesJS Shadcn
Supercharge your page builder! GrapesJS Shadcn adds live drag previews, rich text / commands, dynamic data, and canvas presets to ship to prod faster.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.