2.0.0 • Published 3 years ago
@doky-lab/react-draft-wysiwyg v2.0.0
React Draft Wysiwyg
/!\ WARNING
This is a fork with only the required elements we use at Doky. You shouldn't use this fork for your own use, because the available features are very limited !
This fork also includes this fix.
END WARNING
A Wysiwyg editor built using ReactJS and DraftJS libraries. Demo Page.
Installing
The package can be installed from npm react-draft-wysiwyg
$ npm install --save react-draft-wysiwyg draft-js
Getting started
Editor can be used as simple React Component:
import { Editor } from 'react-draft-wysiwyg';
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
<Editor
editorState={editorState}
toolbarClassName="toolbarClassName"
wrapperClassName="wrapperClassName"
editorClassName="editorClassName"
onEditorStateChange={this.onEditorStateChange}
/>
Docs
For more documentation check here.
Questions Discussions
For discussions join public channel #rd_wysiwyg in DraftJS Slack Organization.
Thanks
Original motivation and sponsorship for this work came from iPaoo. I am thankful to them for allowing the Editor to be open-sourced.
License
MIT.