📄️ Creating Custom Previews
The Decap CMS exposes a window.CMS global object that you can use to register custom widgets, previews and editor plugins. The available customization methods are:
📄️ Custom Formatters
To manage content with other file formats than the built in ones, you can register a custom formatter:
📄️ Custom Mount Element
Decap CMS always creates its own DOM element for mounting the application, which means it always takes over the entire page, and is generally inflexible if you're trying to do something creative, like injecting it into a shared context.
📄️ Manual Initialization
Decap CMS can now be manually initialized, rather than automatically loading up the moment you import it. The whole point of this at the moment is to inject configuration into Decap CMS before it loads, bypassing need for an actual Decap CMS config.yml. This is important, for example, when creating tight integrations with static site generators.
📄️ Registering to CMS Events
You can execute a function when a specific CMS event occurs.