0.0.5 • Published 6 years ago

@nodejh/react-draft-wysiwyg v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

React Draft Wysiwyg

A Wysiwyg editor built using ReactJS and DraftJS libraries based on https://github.com/jpuri/react-draft-wysiwyg.

Demo Page.

Build Status

npm.io

Installing

$ npm install draft-js @nodejh/react-draft-wysiwyg --save

Getting started

Editor can be used as simple React Component:

import { Editor } from '@nodejh/react-draft-wysiwyg';
import '@nodejh/react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
<Editor
  editorState={editorState}
  toolbarClassName="toolbarClassName"
  wrapperClassName="wrapperClassName"
  editorClassName="editorClassName"
  onEditorStateChange={this.onEditorStateChange}
/>