Class: FizzyWig

FormComponents. FizzyWig


new FizzyWig(label, helpText, className, fieldKey, options)

FizzyWig Component
A 'what-you-see-is-what-you-get' style text editor component using a fork from the react-medium-editor.

Parameters:
Name Type Description
label String
helpText String
className String
fieldKey String
options Object

Config options for the text editor, all possible options can be found here.

Source:
See:

Methods


<private, static> _buildOptions()

Build the medium editor options object

Source:
Returns:
Type
*

<private, static> _customHandleChange(text)

Bubble text back up to the changeCallback

Parameters:
Name Type Description
text String
Source:

<static> componentWillReceiveProps(nextProps)

Called anytime this component receives new props. Not called on initial render.

Parameters:
Name Type Description
nextProps array

An array of the properties this component will receive

Source:
Returns:
Type
null

<static> getInitialState()

Gets the initial state of the component.

Source:
Returns:
Type
Object

<static> render()

Renders the FizzyWig component.

Source:
Returns:
Type
JSX