netlify-cms-responsive-vimeo-editor-widget
v1.0.3
Published
Custom editor widget to allow reponsive Vimeo videos to be placed into the editor.
Downloads
4
Readme
netlify-cms-responsive-vimeo-editor-widget
Adds a Vimeo widget to your editor allowing you to embed videos responsively with your app.
Installation
npm install netlify-cms-responsive-vimeo-editor-widget
Usage
Within your cms.js
file:
import CMS from 'netlify-cms';
import ResponsiveVimeoEditorWidget from 'netlify-cms-responsive-vimeo-editor-widget';
CMS.registerEditorComponent(ResponsiveVimeoEditorWidget);
If you're using Gatsby you need to direct Netlify CMS to your cms.js
file like this:
...
{
resolve: 'gatsby-plugin-netlify-cms',
options: {
modulePath: `${__dirname}/src/cms/cms.js`
}
}
...