Fix missing line breaks in code example (#1010)
This commit is contained in:
parent
56857f0d92
commit
d03e92b2e6
@ -20,7 +20,12 @@ However, although possible, it may be cumbersome or even impractical to add a Re
|
|||||||
Register a custom widget.
|
Register a custom widget.
|
||||||
|
|
||||||
```js
|
```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:**
|
**Params:**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user