1.15.0 • Published 2 years ago

react-draft-wysiwyg v1.15.0

Weekly downloads
150,590
License
MIT
Repository
github
Last release
2 years ago

React Draft Wysiwyg

A Wysiwyg editor built using ReactJS and DraftJS libraries. Demo Page.

Build Status

npm.io

Features

  • Configurable toolbar with option to add/remove controls.
  • Option to change the order of the controls in the toolbar.
  • Option to add custom controls to the toolbar.
  • Option to change styles and icons in the toolbar.
  • Option to show toolbar only when editor is focused.
  • Support for inline styles: Bold, Italic, Underline, StrikeThrough, Code, Subscript, Superscript.
  • Support for block types: Paragraph, H1 - H6, Blockquote, Code.
  • Support for setting font-size and font-family.
  • Support for ordered / unordered lists and indenting.
  • Support for text-alignment.
  • Support for coloring text or background.
  • Support for adding / editing links
  • Choice of more than 150 emojis.
  • Support for mentions.
  • Support for hashtags.
  • Support for adding / uploading images.
  • Support for aligning images, setting height, width.
  • Support for Embedded links, flexibility to set height and width.
  • Option provided to remove added styling.
  • Option of undo and redo.
  • Configurable behavior for RTL and Spellcheck.
  • Support for placeholder.
  • Support for WAI-ARIA Support attributes
  • Using editor as controlled or un-controlled React component.
  • Support to convert Editor Content to HTML, JSON, Markdown.
  • Support to convert the HTML generated by the editor back to editor content.
  • Support for internationalization.

Installing

The package can be installed from npm react-draft-wysiwyg

$ npm install --save react-draft-wysiwyg draft-js

Getting started

Editor can be used as simple React Component:

import { Editor } from "react-draft-wysiwyg";
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
<Editor
  editorState={editorState}
  toolbarClassName="toolbarClassName"
  wrapperClassName="wrapperClassName"
  editorClassName="editorClassName"
  onEditorStateChange={this.onEditorStateChange}
/>;

Docs

For more documentation check here.

Questions Discussions

For discussions join public channel #rd_wysiwyg in DraftJS Slack Organization.

Fund

You can fund project at Patreon.

Thanks

Original motivation and sponsorship for this work came from iPaoo. I am thankful to them for allowing the Editor to be open-sourced.

License

MIT.

@lwtears/admin-common@borderfreefinancial/revo-core@borderfreefinancial/revo-core-apitarnet-jumbo-reactk2.n3osmt-form-builder@cepres/uikit@doctorlogic/compoenentsjl-react-formspcx-react-controlsscm-uivib-librarytalent-app-shellbitsy-form-builderscandinaviacaec-admin-webslash-common-componentstxstate-react@xanda/react-componentshotee-adminquickbuilderreact-ui-form-buildershubham-form-builderpc_esignatureui@cloudhub-ux/corecognitiveleap-corecognitiveleap-core-usarms_v2.8_webui@infinitebrahmanuniverse/nolb-react-drcompanyon-form-buildersupport-worksuite@amplifiers/amplify-frontend-schema-formrect-components-007@everything-registry/sub-chunk-2551react-components-007@devphenomenon/react-form-builder-2materio-mui-react-nextjs-admin-templatecard-statisticscompanyon-formbuilderui-food2cdogma-gantt-uipvani_front_endqsq-ui-reactqubryx-react-componentsgi-cvbsm-react-crudsmedia-react-crudshowcase-editshiksha-libsimeple-component-libraryreusecorerhybus-themertcloud-corertcloud-react-commonrtcloud-react-initrutviktesgingpckgstaple-form-buildersterlingdatatablereact-abstract-form-builderrcostexamrd-te-dashboardrd-te-examplerd-te-invoicerd-te-quotesrd-te-quotingrd-te-reportsrd-te-shipmentsrd-te-stylesreact-adminlte-componentsreact-admin-ligerreact-quizzes-forkreact-jira-editorreact-jsonschema-form-extrasreact-jsonschema-form-extras-benpreclosekitpos-depsreact-form-builder-advancedreact-form-builder-antdreact-form-builder-antd-lsreact-form-builder-devreact-form-builder-devextremereact-form-builder-gentechreact-form-builder5react-form-builder7react-form-builder-more-flexibilityreact-form-builder-newreact-form-builder-plusreact-form-builder-validationreact-form-builder-validation-updatedreact-form-builder-workawarereact-form-builder2react-form-builder2-wareact-form-builder2-workawarereact-form-builder3react-form-builder3-workawarereact-form-builder4react-bootstrap-uireact-comments-sectionreact-comments-section-pt-brreact-comments-sectionv2
1.15.0

2 years ago

1.14.7

3 years ago

1.14.6

3 years ago

1.14.5

4 years ago

1.14.4

4 years ago

1.14.3

4 years ago

1.14.2

4 years ago

1.14.1

4 years ago

1.14.0

4 years ago

1.13.2

5 years ago

1.13.1

5 years ago

1.13.0

5 years ago

1.12.20

5 years ago

1.12.19

5 years ago

1.12.18

5 years ago

1.12.17

5 years ago

1.12.16

5 years ago

1.12.15

5 years ago

1.12.14

5 years ago

1.12.13

6 years ago

1.12.12

6 years ago

1.12.11

6 years ago

1.12.10

6 years ago

1.12.9

6 years ago

1.12.8

6 years ago

1.12.7

6 years ago

1.12.6

6 years ago

1.12.5

6 years ago

1.12.4

6 years ago

1.12.3

6 years ago

1.12.2

6 years ago

1.12.1

6 years ago

1.12.0

6 years ago

1.11.0

6 years ago

1.10.12

7 years ago

1.10.11

7 years ago

1.10.10

7 years ago

1.10.9

7 years ago

1.10.8

7 years ago

1.10.7

7 years ago

1.10.6

7 years ago

1.10.5

7 years ago

1.10.4

7 years ago

1.10.3

7 years ago

1.10.2

7 years ago

1.10.1

7 years ago

1.10.0

7 years ago

1.9.9

7 years ago

1.9.8

7 years ago

1.9.7

7 years ago

1.9.6

7 years ago

1.9.5

7 years ago

1.9.4

7 years ago

1.9.3

7 years ago

1.9.2

7 years ago

1.9.1

7 years ago

1.9.0

7 years ago

1.8.5

7 years ago

1.8.4

7 years ago

1.8.3

7 years ago

1.8.1

7 years ago

1.8.0

7 years ago

1.7.9

7 years ago

1.7.8

7 years ago

1.7.7

7 years ago

1.7.6

7 years ago

1.7.5

7 years ago

1.7.4

7 years ago

1.7.3

7 years ago

1.7.2

7 years ago

1.7.1

7 years ago

1.7.0

7 years ago

1.6.5

7 years ago

1.6.4

7 years ago

1.6.3

7 years ago

1.6.2

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.8

7 years ago

1.5.7

7 years ago

1.5.6

7 years ago

1.5.5

7 years ago

1.5.4

7 years ago

1.5.3

7 years ago

1.5.2

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.3.0

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago