Add Setting button to custom component.
Question
Hello,
How can I create a setting or you can say edit button for my custom component?
LIke 4th option on this image:

Answers (3)
The above link I referenced before is only for adding button to toolbar. I think you should just follow below steps to complete your task;
- Create/Implement a editor according to your needs. grapesjs-aviary uses aviary editor (see)
- Define a command which is capable to open your editor like grapesjs-aviary see
- Define toolbar button as I referenced before which runs your command
Thats all.
Hi @HarshOB,
It is simple as image does https://github.com/artf/grapesjs/blob/dev/src/dom_components/model/ComponentImage.js#L32
Hello @ateshuseyin
I don't want the same editor as an image I want to build my own. I just want to add that icon to my component and when I click on that icon I want to display area through the user can add text, image, HTML code etc and that will be reflected in that component.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #362
How to create custom link components that prompts users to type link/choose link similar to Images Component Modal
Image Components have logic to call Modal and prompt user's interaction for options/configuration of image url. Would like to do similar to...
Issue #794
[QUESTION] How to create a custom option in toolbox?
I would like to know how can I create a custom "option" with custom content in this place:
Issue #987
[BUG/Question] Dropdown indicator not displayed for a custom trait
Hello, the dropdown (select) element arrow indicator icon is not rendered when adding a custom trait to a component: I'm using following co...
Issue #899
[QUESTION]: add button to selected element panel
How to add custom button to that panel:
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.