WYSIWYG EDITOR For ReactJS .13+
This component allows users to enter text and style text using common styling techniques, such as Bold, Italic, Underline, etc.
You can look at the example folder to get an understanding of implementing this editor.
Install
$ npm install wysiwyg-editor-react
Include
var Editor = require( 'wysiwyg-editor-react' );
Usage
var React = ;var Editor = ; var Example = React; moduleexports = Example;
Options
- You can list the buttons you want shown in the toolbar by passing in an array to toolbar_buttons.
e.g. [ 'bold', 'italic', 'underline', 'list', 'link', 'justifyLeft', 'justifyCenter','justifyRight', 'justifyFull', 'image' ]
- You can hide the toolbar by setting show_toolbar to false (allowing you to create your own buttons and call the editor's functions yourself.)
- You can pass in className to change the editable div's class for styling purposes
- You can pass in style to change style of editable div. ( defaults maxHeight to 300px and overflow to scroll )