HTML editor and bugfixes
- 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.