docs: addd "collapsed" parameter to "registerEditorComponent" for issue #5779 (#5858)

This commit is contained in:
Ishaan Mehta 2021-10-07 16:15:08 +05:30 committed by GitHub
parent edc3950713
commit 68a85ac270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,8 @@ CMS.registerEditorComponent(definition)
* **definition:** The component definition; must specify: id, label, fields, patterns, fromBlock, toBlock, toPreview
> Additional properties are optional and will be passed to the underlying widget control (object widget by default). For example, adding a `collapsed: true` property will collapse the widget by default.
**Example:**
```html
@ -559,4 +561,4 @@ npm run build
```javascript
npm publish
```
```