2.1.15 • Published 6 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

5 months ago

2.1.18

5 months ago

2.1.17

5 months ago

2.1.16

6 months ago

2.1.15

6 months ago

2.1.14

6 months ago

2.1.13

6 months ago

2.1.12

6 months ago

2.1.11

6 months ago

2.1.10

6 months ago

2.1.9

6 months ago

2.1.8

6 months ago

2.1.7

6 months ago

2.1.6

6 months ago

2.1.5

6 months ago

2.1.4

6 months ago

2.1.3

6 months ago