Native HTML figure element for Netlify CMS
MIT License
Use the native HTML <figure>
element in Netlify CMS to add an image and caption it!
Inspired by this gist. ❤️
Add the package to your project:
yarn add netlify-cms-editor-component-figure
or
npm install --save netlify-cms-editor-component-figure
Import and register the component next to your configuration
// src/cms/cms.js
import { registerEditorComponent } from 'netlify-cms-app'
import { Figure } from 'netlify-cms-editor-component-figure';
registerEditorComponent(Figure);
Once susccessfully added, you'll now have an additional option in the + dropdown for a Figure.
For help with this widget, open an issue or ask the Netlify CMS community in Gitter.