Merge branch 'collection-descriptions'

This commit is contained in:
Tom Moor 2018-11-18 22:03:27 -08:00
commit 85da275b06

View File

@ -9,6 +9,7 @@ type Props = {
bodyPlaceholder?: string,
defaultValue?: string,
readOnly?: boolean,
forwardedRef: *,
history: *,
ui: *,
};
@ -53,6 +54,7 @@ class Editor extends React.Component<Props> {
render() {
return (
<RichMarkdownEditor
ref={this.props.forwardedRef}
uploadImage={this.onUploadImage}
onClickLink={this.onClickLink}
onShowToast={this.onShowToast}
@ -62,4 +64,7 @@ class Editor extends React.Component<Props> {
}
}
export default Editor;
// $FlowIssue - https://github.com/facebook/flow/issues/6103
export default React.forwardRef((props, ref) => (
<Editor {...props} forwardedRef={ref} />
));