{"id":13422153,"url":"https://github.com/jpuri/react-draft-wysiwyg","last_synced_at":"2025-05-12T03:42:00.743Z","repository":{"id":37405588,"uuid":"67361765","full_name":"jpuri/react-draft-wysiwyg","owner":"jpuri","description":"A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg","archived":false,"fork":false,"pushed_at":"2024-12-01T09:52:19.000Z","size":44739,"stargazers_count":6467,"open_issues_count":754,"forks_count":1167,"subscribers_count":84,"default_branch":"master","last_synced_at":"2025-04-22T20:16:47.531Z","etag":null,"topics":["draft-js","javascript","reactjs","wysiwyg-editor"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpuri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":"jyotipuri","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-09-04T18:33:34.000Z","updated_at":"2025-04-21T02:09:20.000Z","dependencies_parsed_at":"2024-01-18T10:16:33.283Z","dependency_job_id":"e50b1431-6a9e-4153-ab85-4f1a76e07cc1","html_url":"https://github.com/jpuri/react-draft-wysiwyg","commit_stats":{"total_commits":575,"total_committers":84,"mean_commits":6.845238095238095,"dds":0.2730434782608696,"last_synced_commit":"51fecc1cdb1804b6232b66523be2d1c6a47ea3a9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpuri%2Freact-draft-wysiwyg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpuri%2Freact-draft-wysiwyg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpuri%2Freact-draft-wysiwyg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpuri%2Freact-draft-wysiwyg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpuri","download_url":"https://codeload.github.com/jpuri/react-draft-wysiwyg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251883116,"owners_count":21659385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["draft-js","javascript","reactjs","wysiwyg-editor"],"created_at":"2024-07-30T23:00:38.169Z","updated_at":"2025-05-01T13:45:29.603Z","avatar_url":"https://github.com/jpuri.png","language":"JavaScript","funding_links":["https://patreon.com/jyotipuri","https://www.patreon.com/jyotipuri"],"categories":["Editor Components","UI Components","JavaScript","Standalone Editors Built on Draft.js","Demos","基于 React","\u003csummary\u003eUI Components\u003c/summary\u003e","For React"],"sub_categories":["Form Components"],"readme":"# React Draft Wysiwyg\n\nA Wysiwyg editor built using ReactJS and DraftJS libraries.\n[Demo Page](https://jpuri.github.io/react-draft-wysiwyg).\n\n[![Build Status](https://travis-ci.org/jpuri/react-draft-wysiwyg.svg?branch=master)](https://travis-ci.org/jpuri/react-draft-wysiwyg)\n\n![](http://i.imgur.com/tU7kJ6i.gif)\n\n## React Draft Wysiwyg AI Bot\n\n[React Draft Wysiwyg](https://codeparrot.ai/oracle?owner=jpuri\u0026repo=react-draft-wysiwyg) Bot will help you understand this repository better. You can ask for code examples, installation guide, debugging help and much more.\n\n## Features\n\n- Configurable toolbar with option to add/remove controls.\n- Option to change the order of the controls in the toolbar.\n- Option to add custom controls to the toolbar.\n- Option to change styles and icons in the toolbar.\n- Option to show toolbar only when editor is focused.\n- Support for inline styles: Bold, Italic, Underline, StrikeThrough, Code, Subscript, Superscript.\n- Support for block types: Paragraph, H1 - H6, Blockquote, Code.\n- Support for setting font-size and font-family.\n- Support for ordered / unordered lists and indenting.\n- Support for text-alignment.\n- Support for coloring text or background.\n- Support for adding / editing links\n- Choice of more than 150 emojis.\n- Support for mentions.\n- Support for hashtags.\n- Support for adding / uploading images.\n- Support for aligning images, setting height, width.\n- Support for Embedded links, flexibility to set height and width.\n- Option provided to remove added styling.\n- Option of undo and redo.\n- Configurable behavior for RTL and Spellcheck.\n- Support for placeholder.\n- Support for WAI-ARIA Support attributes\n- Using editor as controlled or un-controlled React component.\n- Support to convert Editor Content to HTML, JSON, Markdown.\n- Support to convert the HTML generated by the editor back to editor content.\n- Support for internationalization.\n\n## Installing\n\nThe package can be installed from npm `react-draft-wysiwyg`\n\n```\n$ npm install --save react-draft-wysiwyg draft-js\n```\n\n## Getting started\n\nEditor can be used as simple React Component:\n\n```js\nimport { Editor } from \"react-draft-wysiwyg\";\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\n\u003cEditor\n  editorState={editorState}\n  toolbarClassName=\"toolbarClassName\"\n  wrapperClassName=\"wrapperClassName\"\n  editorClassName=\"editorClassName\"\n  onEditorStateChange={this.onEditorStateChange}\n/\u003e;\n```\n\n## Docs\n\nFor more documentation check [here](https://jpuri.github.io/react-draft-wysiwyg/#/docs?_k=jjqinp).\n\n## Questions Discussions\n\nFor discussions join public channel #rd_wysiwyg in [DraftJS Slack Organization](https://draftjs.herokuapp.com/).\n\n## Fund\n\nYou can fund project at [Patreon](https://www.patreon.com/jyotipuri).\n\n## Thanks\n\nOriginal motivation and sponsorship for this work came from [iPaoo](http://www.ipaoo.com/). I am thankful to them for allowing the Editor to be open-sourced.\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpuri%2Freact-draft-wysiwyg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpuri%2Freact-draft-wysiwyg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpuri%2Freact-draft-wysiwyg/lists"}