rh-editor

1.0.9 • Public • Published

React JS Custom Editor

Custom React JS wysiwyg editor.

Current Features

  • Bold, Italic, Underline
  • Headings 1 - 6
  • Order & Unordered Lists
  • Links

I plan on adding in more features as I go.
If you would like to see a new feature added, get in contact and I will do my best to add it.

Install

Via package Manager

    npm install rh-editor --save
    #or 
    yarn add rh-editor

How to use

    import  RhEditor  from 'rh-editor'
 
    const handleRecieveContent = (value) => {
        console.log(value);
    }
 
    const handleRecieveEditorState = (state) = {
        console.log(state);
    }
 
    <RhEditor
        showControls
        startingBlocks={json formated blocks}
        recieveHtml={handleRecieveHtml}
        recieveEditorState={handleRecieveEditorState}
    />

Dependencies (7)

Dev Dependencies (1)

Package Sidebar

Install

npm i rh-editor

Weekly Downloads

2

Version

1.0.9

License

(ISC OR GPL-3.0)

Unpacked Size

37.3 kB

Total Files

12

Last publish

Collaborators

  • richardhpa