Issue #2491πŸ’¬ AnsweredOpened Jan 6, 2020by sukheja-varun1 reactions

Issue attaching event to new plugin in Anglar

Quick answerby pouyamiralayi❀ 1

@sukheja-varun attach any event to the new plugin inside your plugin, you must first define a custom type component: then define a new block which is using our previously defined custom component type: for the modal, we define the below functions: the `createContent will generate the internal html for your modal. the...

Read full answer below ↓

Question

Hi all, I was trying to add a new plugin to grapejs within my Angular project. Requirement: New plugin with name as Product. When the user drops the Product Plugin in HTML, it should open a modal where the user can type some attributes and an auto-complete search where the user can search multiple products and submit of modal I have to inject those products in HTML. I checked the docs and found below example But when I tried to work on this I was unable to :attach any event to the new plugincall APIinject custom HTML

Answers (1)

pouyamiralayiβ€’ Jan 7, 2020

@sukheja-varun attach any event to the new plugin inside your plugin, you must first define a custom type component: then define a new block which is using our previously defined custom component type: for the modal, we define the below functions: the `createContent will generate the internal html...

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.