2.1.19 • Published 10 months ago

react-rich-text-editor-js v2.1.19

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

React Rich Text Editor

Supports:

  • Rich text editing.

Installation:

npm i react-rich-text-editor-js

Plug into any app:

  import RichTextEditor from 'react-rich-text-editor-js'

  const YourComponent = () => {
    const [editorContent, setEditorContent] = useState<string>("");

    return (
      ...
        <RichTextEditor
            editorContent={editorContent}
            setEditorContent={setEditorContent}
        />
      ...
    )
  }

Props to the ReactRichEditor Component:

  • editorContent
  • maxHeight
  • height
  • setEditorContent
  • value
  • spellCheck
  • toolbarConfigs

Default Toolbar Configuratins:

-"bold" -"italic" -"underline" -"strikethrough" -"superscript" -"subscript" -"removeFormat" -"createLink" -"fontSize" -"fontName" -"foreColor" -"backColor" -"insertUnorderedList" -"insertOrderedList" -"justifyLeft" -"justifyCenter" -"justifyRight" -"outdent" -"indent" -"undo" -"redo"

Customize the toolbar:

Passing the ReactRichEditor component the toolbar prop, which is a javascript array and contains the names of the tools.

    <ReactRichEditor toolbarConfigs={["bold", "italic", "underline", "undo", "redo"]} />
2.1.19

10 months ago

2.1.18

10 months ago

2.1.17

10 months ago

2.1.16

10 months ago

2.1.15

10 months ago

2.1.14

10 months ago

2.1.13

10 months ago

2.1.12

10 months ago

2.1.11

10 months ago

2.1.10

10 months ago

2.1.9

10 months ago

2.1.8

10 months ago

2.1.7

10 months ago

2.1.6

10 months ago

2.1.5

10 months ago

2.1.4

10 months ago

2.1.3

10 months ago