Issue #2306💬 AnsweredOpened October 4, 2019by dukie661 reactions

How to remove "Custom code" and "Tooltip" block?

快速解答by pouyamiralayi1

Hi there! for removing blocks: for adding your own blocks see this. cheers!

Read full answer below ↓

Question

I using grapejs demo websites script so that I can learn and build. is there any way I can remove all blocks and add my own blocks.

Answers (1)

pouyamiralayiOctober 4, 2019

Hi there! for removing blocks:

editor.BlockManager.getAll().forEach(b => {
    editor.BlockManager.remove(b.cid) 
})

for adding your own blocks see this. cheers!

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.