1.0.0 • Published 6 years ago

rh-editor v1.0.0

Weekly downloads
3
License
(ISC OR GPL-3.0)
Repository
github
Last release
6 years ago

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