How hide video block ?
Question
Hi, I'm using Basic Extensions Extensions in Grapesjs. I want hide "Video Block" in this Extensions. How I can do it ? Thanks.
Answers (3)
Actually there is an option for the purpose
var editor = grapesjs.init({
...
container : '#gjs',
plugins: ['gjs-blocks-basic'],
pluginsOpts: {
'gjs-blocks-basic': {
// Which blocks to add, just omit 'video'
blocks: ['column1', 'column2', 'column3', 'column3-7', 'text', 'link', 'image', 'map']
}
}
});
- Open src/blocks.js. Remove line 95 -> 109 (line 95 start with
if (blocks.indexOf('video') >= 0) {) - Open src/index.js, line 7: remove
'video',
Rebuild package. I guess it will work!
Thanks you @artf
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1294
How to add category for default block manager?
@artf I want put all default blocks to category named "Basic". But I can't find any documents about it. I use editor.BlockManager.getAll()....
Issue #1629
Grapesjs- When i drag and drop the video into the canvas, i want it to be selected on Component Setting right away
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #1563
[Bug] Trait - Change Video Provider issue
Version: 0.14.40 Bug: When you change "Provider" field -> all settings gone. It happens in Chrome, Safari and Firefox, last versions. How t...
Issue #1514
How to add video block on blockManager
Hello All. i want to add a video block on blockmanager same as mentioned on below snapshot i am using following code for adding video block...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.