mirror of
https://github.com/strapi/strapi.git
synced 2025-12-16 17:53:53 +00:00
28 lines
417 B
JavaScript
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;
|