Issue #2351○ OpenOpened October 23, 2019by bitfactory-angelo-vancleef0 reactions

How to create a custom block with fillable params

待解决问题

No community answers yet. Open the original discussion on GitHub to share your solution.

Question

Hi guys, first of all excellent work!

I tried following the tutorial but I am unable to understand how to add a custom block, to which after selecting it the user can fill in parameters (name and title for example) from the menu on the right.

I read about blocks, components and traits but I fail to understand how to write a new block (or component) myself.

Would someone be so kind to write me a very simple example? e.g. drag and drop a block that adds a <p>Hello world!</p> tag. After you click on it the user should be able to add classes, a title and fill in a value for a "data-name=''" property.

I hope someone can explain to me how its done, I am sure I will understand it after seeing a full code example.

Answers (0)

No answers yet.

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.