Creating Custom Netlify Editor Components
The available widget extension methods are:
- registerWidget: registers a custom widget.
- registerEditorComponent: adds a block component to the Markdown editor.
Register Editor Component sounds like what I want.
The component definition must specify:
It seems editor components in Netlify CMS work by regex matching some declared text and replacing it.
In this example, in the markdown editor if you write “customBlockquote Here’s a quote” with the footer afterwards with the author name, Netlify will pattern match that and preview it properly.
Done like this, it would seem I would have to make another parser on the frontend for it to display properly…
Better to just start with semantic HTML.