Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 397 Bytes

helpers.md

File metadata and controls

22 lines (16 loc) · 397 Bytes

getEditorMetadata

getEditorMetadata is a method that allows you to get information about the Editor's state without reaching directly into the plugin system.

Example:

const editor = SwaggerEditor({ /* your configuration here */ })

SwaggerEditor.getEditorMetadata()

Result:

{
  contentString: String,
  contentObject: Object,
  isValid: Boolean,
  errors: Array,
}