netlify-cms-widget-nested-json

1.1.3 • Public • Published

netlify-cms-widget-nested-json

A custom Netlify CMS widget for editing nested JSON data.

npm version

Check out a demo!

Similar standalone version here.

GIF

Here's an animation of the CMS widget, if you don't want to check out the demo link above. Screenshot gif

Installation

As an npm package:

yarn add netlify-cms-widget-nested-json
import NestedJsonEditor from 'netlify-cms-widget-nested-json'
 
CMS.registerWidget('NestedJsonEditor', NestedJsonEditorControl, NestedJsonEditorPreview)

Via script tag:

<script src="https://unpkg.com/netlify-cms-widget-nested-json"></script>
 
<script>
  CMS.registerWidget('NestedJsonEditor', NestedJsonEditorControl, NestedJsonEditorPreview)
</script> 

Usage

Add to your Netlify CMS configuration:

    fields:
      { name: <fieldname>, label: <fieldlabel>, widget: NestedJsonEditor }

Support

For help with this widget, open an issue or message me.

Package Sidebar

Install

npm i netlify-cms-widget-nested-json

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

74.9 kB

Total Files

19

Last publish

Collaborators

  • lukestorry