Fix missing line breaks in code example (#1010)

This commit is contained in:
Chris Swithinbank 2018-01-17 01:51:45 +01:00 committed by Jessica Parsons
parent 56857f0d92
commit d03e92b2e6

View File

@ -20,7 +20,12 @@ However, although possible, it may be cumbersome or even impractical to add a Re
Register a custom widget.
```js
// Using global window objectCMS.registerWidget(name, control, [preview])// Using npm module importimport CMS from 'netlify-cms'CMS.registerWidget(name, control, [preview])
// Using global window object
CMS.registerWidget(name, control, [preview])
// Using npm module import
import CMS from 'netlify-cms'
CMS.registerWidget(name, control, [preview])
```
**Params:**