diff --git a/website/site/content/docs/custom-widgets.md b/website/site/content/docs/custom-widgets.md index 279112ed..cdd18a02 100644 --- a/website/site/content/docs/custom-widgets.md +++ b/website/site/content/docs/custom-widgets.md @@ -19,13 +19,13 @@ However, although possible, it may be cumbersome or even impractical to add a Re Register a custom widget. -```js -// Using global window object -CMS.registerWidget(name, control, [preview]) - -// Using npm module import -import CMS from 'netlify-cms' -CMS.registerWidget(name, control, [preview]) +```js +// Using global window object +CMS.registerWidget(name, control, [preview]); + +// Using npm module import +import CMS from 'netlify-cms'; +CMS.registerWidget(name, control, [preview]); ``` **Params:** @@ -33,7 +33,7 @@ CMS.registerWidget(name, control, [preview]) | Param | Type | Description | | ----------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | string | Widget name, allows this widget to be used via the field `widget` property in config | -| `control` | React.Component | string | | +| `control` | React.Component | | | [`preview`] | React.Component, optional | Renders the widget preview, receives the following props: | * **field:** The field type that this widget will be used for.