Issue #2306Opened October 4, 2019by dukie661 reactions

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

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, 20191 reactions

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.