Issue #643Opened December 14, 2017by tlatforlz3 reactions

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)

artfDecember 14, 20173 reactions

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']
        }
      }
  });
hoainam12kDecember 14, 20170 reactions
  1. Open src/blocks.js. Remove line 95 -> 109 (line 95 start with if (blocks.indexOf('video') >= 0) {)
  2. Open src/index.js, line 7: remove 'video',

Rebuild package. I guess it will work!

tlatforlzDecember 15, 20170 reactions

Thanks you @artf

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.