/netlify-cms-editor-component-video

Video component for Netlify CMS editor widget

Primary LanguageJavaScript

netlify-cms-editor-component-video

This package provide a Video component for Netlify CMS editor widget ready to drop in your Netlify CMS projects. Video shortcode plugin is used for video shortcode processing in markdown.


Installation

Run the following command using npm:

npm install --save netlify-cms-editor-component-video gatsby-remark-video-shortcode 

Requirements

  1. Gatsby version >=2.17.15
  2. Gatsby Transformer Remark Plugin >=2.6.36

Usage

Add to your CMS.js inside Netlify CMS project

import video from 'netlify-cms-editor-component-video';

CMS.registerEditorComponent(video);

Configuration

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
        {
          resolve: `gatsby-remark-video-shortcode`
        }
      ]
    }
  }
];