5 best open-source WYSIWYG editors for React (2023)

Last updated on January 4, 2023 Guest Contributor Loading... 9 comments

WYSIWYG (What You See Is What You Get or Rich Text) editors are commonly used on many websites and web apps related to newspapers, blogs, e-commerce, forums, and online communities to help users publish and edit articles, product information, directions manual, etc. with functions such as alignment, change font size and text color, insert images, and so on.

This article walks you through a list of the best and most popular open-source WYSIWYG editors for React. Their order is based on the number of stars they receive on Github and the number of downloads per week on npmjs.com.



Draft.js is a highly extensible and customizable JavaScript rich-text editor framework built for React and fits seamlessly into React applications, abstracting away the details of rendering, selection, and input behavior with a familiar declarative API.

Sample use:

import React from 'react';
import ReactDOM from 'react-dom';
import {Editor, EditorState} from 'draft-js';
const MyEditor = props => {
  const [editorState, setEditorState] = React.useState(
  const editor = React.useRef(null);
  function focusEditor() {
  React.useEffect(() => {
  }, []);
  return (
    <div onClick={focusEditor}>
        onChange={editorState => setEditorState(editorState)}

React Quill


  • GitHub stars: 5.5k+
  • Weekly NPM downloads: 400k – 450k
  • Links: GitHub repo | npm page | live demo
  • License: MIT
  • Written in: Javascript, TypeScript

React Quill is a rich text editor that is fully compatible with React hooks and TypeScript. It provides 3 built-in themes:

  • Snow: A Quill’s standard appearance,
  • Bubble: Similar to the inline editor on Medium
  • Core theme: Contains only the bare essentials to allow modules like toolbars or tooltips to work.

Sample code:

import React, { useState } from "react";
import ReactQuill from 'react-quill';
import 'react-quill/dist/quill.snow.css';

const MyEditor = () => {
  const [value, setValue] = useState('');

  return (
    <ReactQuill theme="snow" value={value} onChange={setValue}/>

Slate React


Slate lets you build rich, intuitive editors like those in Medium, Dropbox Paper, or Google Docs without your codebase getting mired in complexity. t can do this because all of its logic is implemented with a series of plugins, so you aren’t ever constrained by what is or isn’t in “core”.

React Draft Wysiwyg


This is a lightweight rich text editor built on top of ReactJS and DraftJS. It provides lots of features:

  • Configurable toolbar with the option to add/remove controls.
  • Option to change the order of the controls in the toolbar.
  • Support for block types: Paragraph, H1 – H6, Blockquote, Code.
  • Support for coloring text or background.
  • Support for adding/uploading images.
  • Option of undo and redo.

And many more…

Official TinyMCE React component


TinyMCE is an advanced open-source core-rich text editor that can be easily integrated into your React projects.

It is easy to configure the UI to match the layout design of your site, product, or application. Due to its flexibility, you can configure the editor with as much or as little functionality as you like, depending on your requirements.

With a ton of powerful plugins available, extending and adding additional functionality to TinyMCE is as simple as including a single line of code.

Sample use:

 import React, { useRef } from 'react';
 import { Editor } from '@tinymce/tinymce-react';

 const App = () => {
   const editorRef = useRef(null);
   const log = () => {
     if (editorRef.current) {
   return (
         onInit={(evt, editor) => editorRef.current = editor}
         initialValue="<p>This is the initial content of the editor.</p>"
           height: 500,
           menubar: false,
           plugins: [
             'advlist autolink lists link image charmap print preview anchor',
             'searchreplace visualblocks code fullscreen',
             'insertdatetime media table paste code help wordcount'
           toolbar: 'undo redo | formatselect | ' +
           'bold italic backcolor | alignleft aligncenter ' +
           'alignright alignjustify | bullist numlist outdent indent | ' +
           'removeformat | help',
           content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
       <button onClick={log}>Log editor content</button>

export default App;


We’ve gone over a collection of great, free, and open-source rich text editors that you can use in your React applications. Which one will you choose? Please let us know in the comment section.

If you’d like to explore more new and exciting things in React and front-end development, take a look at the following articles:

You can also check our React topic page and React Native topic page for the latest tutorials and examples.

Notify of
Inline Feedbacks
View all comments
5 months ago
  • asdfssdfsd
  • asdff
  1. sd
  2. fsdaf
6 months ago

DraftJS is under maintenance mode and will be archived in Dec 2022. Facebook is replacing it with “Lexical”: https://github.com/facebook/lexical

6 months ago

ding a single line of code.comment image
Sample use:

8 months ago


11 months ago

My recommended ReactJS editor is Codelobster – http://www.codelobster.com/reactjs.html

5 months ago
Reply to  Stas

This article is not about code editors but wysiwg editors to embed in react apps

A Goodman
A Goodman
5 months ago
Reply to  Pau

Right. Obviously, most React developers use VS Code today.

1 year ago

Ty Editor.js

1 year ago
  1. dasdasd
  2. asdasd
  3. asd
  4. asdasd

Related Articles