netlify-cms-editor-component-video
v1.0.0
Published
Video component for Netlify CMS editor widget
Downloads
1,028
Maintainers
Readme
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 netlify-cms-editor-component-video gatsby-remark-video-shortcode --save
Requirements
- Gatsby version >=2.17.15
- Gatsby Transformer Remark Plugin >=2.6.36
---
## Usage
Add to your CMS.js inside Netlify CMS project
```js
import video from 'netlify-cms-editor-component-video';
CMS.registerEditorComponent(video);
Configuration
// In your gatsby-config.js
plugins: [
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-video-shortcode`
}
]
}
}
];