GrapesJS / preset-webpage

GrapesJS Plugin Webpage Preset
http://grapesjs.com/demo.html
BSD 3-Clause "New" or "Revised" License
335 stars 291 forks source link

Block ID location #55

Closed BaskarMN closed 3 years ago

BaskarMN commented 3 years ago

Hi, I'm trying to remove some of the default basic blocks as part of my project. I have used the author's method of removing the block which is as follows

const bm = editor.BlockManager; const blocks = bm.getAll(); const toRemove = blocks.filter(block => block.get('category') === 'Basic'); toRemove.forEach(block => bm.remove(block.get('id')))

I need to find the ID of that particular block (here i'm trying to remove columns 3/7) Is the above method correct? and where should I find the id?

BaskarMN commented 3 years ago

I found it. It's located in grapesjs-preset-webpage/dist/grapesjs-preset-webpage.min.js.