draft-richtext
v0.1.8
Published
A richtext on top of DraftJS.
Downloads
6
Readme
Installing
The package can be installed from npm react-draft-wysiwyg
$ npm install --save @channelwill/draft-richtext
Getting started
Editor can be used as simple React Component:
import { Editor } from "@channelwill/draft-richtext";
import "@channelwill/draft-richtext/dist/react-draft-wysiwyg.css";
<Editor
editorState={editorState}
toolbarClassName="toolbarClassName"
wrapperClassName="wrapperClassName"
editorClassName="editorClassName"
onEditorStateChange={this.onEditorStateChange}
/>;