Issue #791💬 AnsweredOpened January 24, 2018by lauragadea1 reactions

Adding new button in toolbar

Quick answerby artf1

@lauragadea probably you should try to extend default component types (eg. default, image, text, etc.)

Read full answer below ↓

Question

Hello,

I am trying to add a new button to the toolbar of all the components. I been able to add for each component separatly, but not for all of them at once. To note that I want to avoide modifying the file ‘src/grapesjs/dom_components/model/Component.js’

Is there a way to do that?

Thank you in advance for yur help!

Answers (3)

artfJanuary 25, 2018

@lauragadea probably you should try to extend default component types (eg. default, image, text, etc.)

JulyanoFJanuary 24, 2018

@lauragadea , please check #266

lauragadeaJanuary 24, 2018

Yes @JulyanoF , I already have. And it suggests modifying the files ‘src/grapesjs/dom_components/model/Component.js’. That is exactly what I am trying to avoid.

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.