Issue #1341💬 AnsweredOpened August 6, 2018by HakuTheWolfSpirit0 reactions

How to work with Custom Components

Quick answerby artf

Problem 1 It depends (you can extend other types), but that is the base for all the componentsProblem 2 Here you should point out only issues related to the core library and not its pluginsProblem 3 Please read carefully this https://grapesjs.com/docs/modules/Components.html

Read full answer below ↓

Question

Hello, I have some questions and issues about and with the grapes editorProblem 1 In a component, which class is there extended? Is it really this class?Problem 2 I have created a codesandbox which shows which issues I currently have. It is oriented on the mjml-pluginSandbox Output Sandbox CodeSteps to reproduceDrag the Button block into the editorSee that there are no classesModify the widthThe size is not changingReload the pageThe size is now applied because now a class has been addedNow when there is a class width modifications are shown live.Reload the pageAnother class was added. This d...

Answers (3)

artfAugust 9, 2018

Problem 1

It depends (you can extend other types), but that is the base for all the components

Problem 2

Here you should point out only issues related to the core library and not its plugins

Problem 3

Please read carefully this https://grapesjs.com/docs/modules/Components.html

HakuTheWolfSpiritAugust 9, 2018

Please read carefully this https://grapesjs.com/docs/modules/Components.html Yeah, forgot an important line defaults: { ...defaultModel.prototype.defaults, ...props } Here you should point out only issues related to the core library and not its plugins Well that was not really a problem with the mj...

adelliinaaJuly 10, 2019

What are the steps of importing a customised component?

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.