2018-03-14 09:59:42 +01:00

28 lines
417 B
JavaScript

/**
*
* WysiwygEditor
*
*/
import React from 'react';
import { Editor } from 'draft-js';
import PropTypes from 'prop-types';
class WysiwygEditor extends React.Component {
render() {
return (
<Editor {...this.props} ref={this.props.setRef} />
);
}
}
WysiwygEditor.defaultProps = {
setRef: () => {},
};
WysiwygEditor.propTypes = {
setRef: PropTypes.func,
};
export default WysiwygEditor;