Issue #643✓ SolvedOpened December 14, 2017by tlatforlz3 reactions

How hide video block ?

快速解答by artf3

Actually there is an option for the purpose

Read full answer below ↓

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)

👍 Most helpfulartfDecember 14, 2017

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, 2017
  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, 2017

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

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.