strapi-plugin-content-manager
Version:
A powerful UI to easily manage your data.
27 lines (21 loc) • 437 B
JavaScript
/**
*
* WysiwygEditor
*
*/
import React from 'react';
import { Editor } from 'draft-js';
import 'draft-js/dist/Draft.css';
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;