text: import React from 'react';
  import { Button, notification, Card } from 'antd';
  import ReactQuill from 'react-quill';
  import 'react-quill/dist/quill.snow.css';
  
  export default class test extends React.Component {
    state = {
      value: 'test',
    };
  
    handleChange = value => {
      this.setState({
        value,
      });
    };
  
    prompt = () => {
      notification.open({
        message: 'We got value:',
        description: <span dangerouslySetInnerHTML={{ __html: this.state.value }} />,
      });
    };
  
    render() {
      return (
        <Card title="富文本编辑器">
          <ReactQuill value={this.state.value} onChange={this.handleChange} />
          <Button style={{ marginTop: 16 }} onClick={this.prompt}>
            Prompt
          </Button>
        </Card>
      );
    }
  }
  