npm

draft-richtext

0.1.8 • Public • Published

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}
/>;

Readme

Keywords

none

Package Sidebar

Install

npm i draft-richtext

Weekly Downloads

2

Version

0.1.8

License

MIT

Unpacked Size

319 kB

Total Files

7

Last publish

Collaborators

  • hubaoqing