the Quill rich text editor in antd.
Instruction
just test, There are a lot of bugs. Welcome you to fix them.
SnapShot
Development
just run npm run start
Build
Usage
Install
$ npm i react-quill-antd -S
1. Used without antd form
import React from 'react';import Editor from 'react-quill-antd';import 'react-quill-antd/dist/index.css'; Component state = content: '' { this; } { return <div> <Editor = = ="please input ..." /> </div> }
2. Used with antd Form
import Editor from 'react-quill-antd';import 'react-quill-antd/dist/index.css'; Component { // To disabled submit button at the beginning. thispropsform; } { e; thispropsform; }; { const getFieldDecorator = thispropsform; return <Form ="inline" => <FormItem> <Editor /> </FormItem> <FormItem> <Button ="primary" ="submit"> Submit </Button> </FormItem> </Form> ; }