Class: MediumEditor

FormComponents. MediumEditor


new MediumEditor(className, fieldKey, options, onChange, text)

MediumEditor Component
Forking the react-medium-editor by Wang Zuo who did all the heavy lifting.
This fork is meant to ensure a constant medium-editor version.

Parameters:
Name Type Description
className String
fieldKey String
options Object
onChange function
text String
Source:
See:

Methods


<static> componentDidMount()

Register a new MediumEditor.

Source:
Returns:
Type
null

<static> componentWillUnmount()

Remove the MediumEditor instance.

Source:
Returns:
Type
null

<static> onChange(event)

Change handler.

Parameters:
Name Type Description
event
Source:
Returns:
Type
null

<static> render()

Renders the MediumEditor component.

Source:
Returns:
Type
JSX

<static> shouldComponentUpdate(nextProps, nextState)

Don't re-render component. Ever.

Parameters:
Name Type Description
nextProps Object
nextState
Source:
Returns:
Type
Boolean