Closed BaskarMN closed 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?
I found it. It's located in grapesjs-preset-webpage/dist/grapesjs-preset-webpage.min.js.
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?