rte-draft-js-react

1.2.5 • Public • Published

rte-draft-js

import { RteDraftjsComponent } from "rte-draft-js-react";

export default function App () {
    return <RteDraftjsComponent
                html={`<p>hello world</p>`}
                placeholder={'Enter your content here...'}
                height={"440px"}
                showPreviewButton={true}
                imageUploaderUrl={'http://localhost:3000'}
                viewHtmlButton={true}
                handlerOnChange={(value) => {console.log(value)}}
           />
}
  • @param {html} - custom html
  • @param {placeholder} - dummy text
  • @param {height} - height of editor
  • @param {showPreviewButton} - toggle preview button view
  • @param {imageUploaderUrl} - bucket url to upload image
  • @param {viewHtmlButton} - toggle html button view
  • @param {handlerOnChange} - returns html value

/rte-draft-js-react/

    Package Sidebar

    Install

    npm i rte-draft-js-react

    Weekly Downloads

    1

    Version

    1.2.5

    License

    MIT

    Unpacked Size

    753 kB

    Total Files

    148

    Last publish

    Collaborators

    • kushankurdas