You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
395 B
18 lines
395 B
import React from 'react'
|
|
import { Editor } from 'react-draft-wysiwyg'
|
|
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
|
|
import styles from './Editor.less'
|
|
|
|
const DraftEditor = props => {
|
|
return (
|
|
<Editor
|
|
toolbarClassName={styles.toolbar}
|
|
wrapperClassName={styles.wrapper}
|
|
editorClassName={styles.editor}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default DraftEditor
|