Ekapp/swagger/docs/helpers.md

22 lines
397 B
Markdown
Raw Normal View History

2020-06-10 06:25:21 +00:00
### `getEditorMetadata`
`getEditorMetadata` is a method that allows you to get information about the Editor's state without reaching directly into the plugin system.
Example:
```js
const editor = SwaggerEditor({ /* your configuration here */ })
SwaggerEditor.getEditorMetadata()
```
Result:
```js
{
contentString: String,
contentObject: Object,
isValid: Boolean,
errors: Array,
}
```