Issue #3174πŸ’¬ AnsweredOpened Dec 9, 2020by ThetripGr1 reactions

Creating a new component type does not inherit the functions of it's parent type

Quick answerby ThetripGr❀ 1

nvm , I revisited the docs more carefully, I somehow missed this about extending parent functions

Read full answer below ↓

Question

Hello, I am trying to create a new common trait shared among all components by creating the following plugin on another plugin file I am also creating a new component type same way following the docs, called extendedText which uses the text type as it's basis. While the text type has the handleBgColorChange() as shown below the new type branching from text does not how do I pass down the parent type functions?

Answers (2)

ThetripGrβ€’ Dec 9, 2020

nvm , I revisited the docs more carefully, I somehow missed this about extending parent functions

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @ThetripGr. Great question about Creating a new component type does not inherit the functions of it's parent type. The recommended approach with Components is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the o...

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.