Voltar ao ranking

jpuri/react-draft-wysiwyg

JavaScript

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg

wysiwyg-editordraft-jsreactjsjavascript
Crescimento de estrelas
Estrelas
6.5k
Forks
1.2k
Crescimento semanal
Issues
624
2k4k6k
jan. de 2023mar. de 2024mai. de 2025jul. de 2026
Artefatosnpmnpm install react-draft-wysiwyg
README

React Draft Wysiwyg

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

Build Status

React Draft Wysiwyg AI Bot

React Draft Wysiwyg Bot will help you understand this repository better. You can ask for code examples, installation guide, debugging help and much more.

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.

Repositórios relacionados
ueberdosis/tiptap

The headless rich text editor framework for web artisans.

TypeScriptnpmMIT Licensejsvue
tiptap.dev
37.7k3.1k
basecamp/trix

A rich text editor for everyday writing

JavaScriptnpmMIT Licenserich-text-editorwysiwyg-editor
trix-editor.org
20k1.1k
wangeditor-team/wangEditor

wangEditor, open-source Web rich text editor 开源 Web 富文本编辑器

TypeScriptnpmMIT Licensewangeditorrich-text
wangeditor.com
18.4k3.3k
tinymce/tinymce

The world's #1 JavaScript library for rich text editing. Available for React, Vue and Angular

TypeScriptnpmOtherjavascripteditor
tiny.cloud
16.3k2.3k
jaredreich/pell

📝 the simplest and smallest WYSIWYG text editor for web, with no dependencies

JavaScriptnpmMIT Licensecontenteditableeditor
12.1k548
summernote/summernote

Super Simple WYSIWYG Editor

JavaScriptnpmMIT Licensesummernotewysiwyg-editor
summernote.org
11.8k2.3k
Milkdown/milkdown

🍼 Plugin driven WYSIWYG markdown editor framework.

TypeScriptnpmMIT Licensemarkdownmarkdown-editor
milkdown.dev
11.7k533
ckeditor/ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.

JavaScriptnpmOtherckeditor5ckeditor
ckeditor.com
10.4k3.7k
react-page/react-page

Next-gen, highly customizable content editor for the browser - based on React and written in TypeScript. WYSIWYG on steroids.

TypeScriptnpmMIT Licenseeditorsites
react-page.github.io
9.5k650
zenoamaro/react-quill

A Quill component for React.

JavaScriptnpmMIT Licensereactquill
zenoamaro.github.io/react-quill
7k943
wasabeef/richeditor-android

RichEditor for Android is a beautiful Rich Text WYSIWYG Editor for Android.

JavaMavenApache License 2.0androidandroid-library
6.3k1.2k
toeverything/blocksuite

🧩 Content editing tech stack for the web - BlockSuite is a toolkit for building editors and collaborative applications.

TypeScriptnpmMozilla Public License 2.0blockcollaboration
blocksuite.io
5.9k559