Fixed ref

This commit is contained in:
Jori Lallo
2017-09-10 22:24:23 -07:00
parent 5cd857abda
commit 75ec792675

View File

@ -186,7 +186,7 @@ type KeyData = {
<Header onClick={this.focusAtStart} readOnly={this.props.readOnly} />
<Toolbar state={this.state.state} onChange={this.onChange} />
<StyledEditor
ref={ref => (this.editor = ref)}
innerRef={ref => (this.editor = ref)}
placeholder="Start with a title…"
bodyPlaceholder="Insert witty platitude here"
schema={this.schema}