Skip to content

HTML editor and bugfixes

Compare
Choose a tag to compare
@danieloprado danieloprado released this 16 Jan 12:37
· 78 commits to master since this release
  • New HTML Editor:
<FieldHtml
  label='Descrição'
  value={model.description}
  onChange={html => this.setState({ html }) }
  validation='required'
/>

You can pass toolbar as a prop or set through config.

// App.jsx
<FormFieldsContext config={{
    editorLocale: 'pt',
    editorToolbar: {
      inline: { options: ['bold', 'italic', 'underline'] },
      list: { options: ['unordered', 'ordered'] }
    },
    validation: validationMessage
  }}>
 // ... your app
</FormFieldsContext>
  • New config props: editorLocale and editorToolbar.

Bugfixes

  • Select now return null value when emptyOption is selected.
  • Select now allow to set an option with value 0.
  • All helperText now allow pass elements as value.