@syncfusion/ej2-react-richtexteditor

29.1.37 • Public • Published

React RichTextEditor Component

The React Rich Text Editor component is a feature-rich WYSIWYG HTML editor and WYSIWYG Markdown editor. The Rich Text Editor is widely used to create blogs, forum posts, notes sections, comment sections, messaging applications, and more. The control provides an efficient user interface for a better editing experience with mobile support. It has a variety of tools to edit and format rich content, and it return a valid HTML markup or Markdown (MD) content. It allows users to insert images, links, tables, media files and lists with modular architectures.

Getting started . Online demos . Learn more

React RichTextEditor Component

Trusted by the world's leading companies Bootstrap logo

Setup

Create a React Application

You can use create-react-app to setup applications. To create React app use the following command.

npx create-react-app my-app --template typescript
cd my-app
npm start

Adding Syncfusion® Rich Text Editor package

To install RichTextEditor component and its dependent packages, use the following command.

npm install @syncfusion/ej2-react-richtexteditor --save

Adding CSS references for Rich Text Editor

Add CSS references needed for Rich Text Editor in src/App.css from ../node_modules/@syncfusion package folder.

@import '../../node_modules/@syncfusion/ej2-base/styles/bootstrap5.css';
@import '../../node_modules/@syncfusion/ej2-icons/styles/bootstrap5.css';
@import '../../node_modules/@syncfusion/ej2-buttons/styles/bootstrap5.css';
@import '../../node_modules/@syncfusion/ej2-splitbuttons/styles/bootstrap5.css';
@import '../../node_modules/@syncfusion/ej2-inputs/styles/bootstrap5.css';
@import '../../node_modules/@syncfusion/ej2-lists/styles/bootstrap5.css';
@import '../../node_modules/@syncfusion/ej2-navigations/styles/bootstrap5.css';
@import '../../node_modules/@syncfusion/ej2-popups/styles/bootstrap5.css';
@import '../../node_modules/@syncfusion/ej2-richtexteditor/styles/bootstrap5.css';

Add Rich Text Editor Component

In src/App.tsx file, use the following code snippet to render the Syncfusion® React Rich Text Editor control and import App.css to apply styles to the richtexteditor:

import { HtmlEditor, Image, Inject, Link, QuickToolbar, RichTextEditorComponent, Toolbar } from '@syncfusion/ej2-react-richtexteditor';
import * as React from 'react';
import './App.css';

function App() {
    return (
            <div className="App">
                <RichTextEditorComponent>
                    <p>The Rich Text Editor component is WYSIWYG ("what you see is what you get") editor that provides the best user experience to create and update the content. Users can format their content using standard toolbar commands.</p>
                    <Inject services={[Toolbar, Image, Link, HtmlEditor, QuickToolbar]} />
                </RichTextEditorComponent>
            </div>
        );
};
export default App;

Supported frameworks

RichTextEditor component is also offered in the following frameworks.


     JavaScript    

       Angular      

       Vue         

  ASP.NET Core  

  ASP.NET MVC  

Showcase samples

Key features

  • Edit mode - HTML content is possible to edit in a div element or an iframe in the rich text editor.
  • Markdown editor - The rich text editor allows you to edit Markdown content using the Markdown syntax.
  • Markdown content preview - Preview of the modified Markdown content in the editor, you can give users the ability to see what the formatted content will look like before they save it.
  • HTML code editing - The rich text editor allows users to edit the HTML code directly in the HTML code view. This can be useful for users who are familiar with HTML and want to have more control over the formatting and layout of their content.
  • Tools - The rich text editor handles a wide range of features, including inserting images, hyperlinks, tables, formatting tools, and more.
  • Toolbar appearance - The rich text editor can provide a fully customizable toolbar that allows users to access the various formatting and editing options that are available.
  • Undo and redo - Users can use undo and redo actions to reverse or repeat actions they took while editing the content.
  • Module injection - It is possible to create a editor that utilizes a modular library to load the necessary functionality on demand. This can be useful for optimizing the performance of the editor.
  • Third-party integration - It is possible to integrate a third-party library into a rich text editor to add additional functionality or features to the editor like Code-mirror, Embedly and more.

Support

Product support is available through the following mediums.

Changelog

Check the changelog here. Get minor improvements and bug fixes every week to stay up to date with frequent updates.

License and copyright

This is a commercial product and requires a paid license for possession or use. Syncfusion® licensed software, including this component, is subject to the terms and conditions of Syncfusion® EULA. To acquire a license for 80+ React UI components, you can purchase or start a free 30-day trial.

A free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

See LICENSE FILE for more info.

© Copyright 2025 Syncfusion® Inc. All Rights Reserved. The Syncfusion® Essential Studio® license and copyright applies to this distribution.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
29.1.37543latest
21.1.42344beta

Version History

VersionDownloads (Last 7 Days)Published
29.1.37543
29.1.35615
29.1.3442
29.1.3361
28.2.11613
28.2.9112
28.2.7153
28.2.6356
28.2.5200
28.2.487
28.2.36
28.1.4112
28.1.397
28.1.3867
28.1.37149
28.1.3629
28.1.35101
28.1.3322
27.2.5563
27.2.459
27.2.31
27.2.24
27.1.5869
27.1.5777
27.1.5550
27.1.52192
27.1.5143
27.1.501
27.1.4810
26.2.141,140
26.2.1320
26.2.1229
26.2.112
26.2.10105
26.2.950
26.2.80
26.2.75
26.2.524
26.2.425
26.1.4251
26.1.410
26.1.400
26.1.3845
26.1.3532
25.2.7451
25.2.62
25.2.564
25.2.416
25.2.315
25.1.4284
25.1.4125
25.1.4022
25.1.3922
25.1.380
25.1.370
25.1.3564
24.2.9186
24.2.80
24.2.724
24.2.43
24.2.341
24.1.4774
24.1.4670
24.1.4510
24.1.431
24.1.4136
23.2.7367
23.2.665
23.2.5173
23.2.40
23.1.4476
23.1.434
23.1.4119
23.1.400
23.1.390
23.1.360
22.2.12175
22.2.1012
22.2.98
22.2.5261
22.1.390
22.1.384
22.1.360
21.1.42344
21.1.360
22.1.3471
21.2.10303
21.2.920
21.2.80
21.2.60
21.2.52
21.2.412
21.2.319
21.1.415
21.1.390
21.1.370
21.1.350
20.4.53268
20.4.520
20.4.510
20.4.501
20.4.493
20.4.481
20.4.444
20.4.43129
20.4.420
20.4.401
20.4.380
20.3.6114
20.3.600
20.3.590
20.3.5626
20.3.501
20.3.478
20.2.5011
20.2.490
18.4.42-709436
20.2.461
20.2.450
20.2.440
20.2.432
20.2.401
20.2.392
20.2.382
20.2.36348
20.1.6122
20.1.607
20.1.590
20.1.5826
20.1.571
20.1.564
20.1.551
20.1.520
20.1.513
20.1.500
20.1.481
20.1.472
19.4.56491
19.4.550
19.4.540
19.4.530
19.4.522
19.4.50139
19.4.480
19.4.471
19.4.400
19.4.384
19.3.5717
19.3.552
19.3.530
19.3.470
19.3.460
19.3.451
19.3.440
19.3.430
19.2.6216
19.2.601
19.2.590
19.2.570
19.2.560
19.2.551
19.2.510
19.2.492
19.2.480
19.2.470
19.2.460
19.2.441
19.1.6910
19.1.670
19.1.660
19.1.650
19.1.640
19.1.630
19.1.590
19.1.570
19.1.560
19.1.550
19.1.540
18.4.49163
18.4.481
18.4.470
18.4.461
18.4.442
18.4.421
18.4.390
18.4.350
17.2.55-12054791
18.4.341
18.4.330
18.4.320
18.4.300
18.3.520
17.2.52-12054790
18.3.500
18.3.480
18.3.470
18.3.440
18.3.420
18.3.400
18.3.350
18.2.561
18.2.550
18.2.541
18.2.480
18.2.460
18.2.450
18.2.4411
18.1.575
18.1.5422
18.1.537
18.1.521
18.1.481
18.1.450
18.1.441
18.1.430
18.1.420
18.1.36-beta0
17.4.552
17.4.510
17.4.491
17.4.482
17.4.470
17.4.461
17.4.441
17.4.430
17.4.400
17.4.391
17.3.290
17.3.281
17.3.271
17.3.260
17.3.191
17.3.160
17.3.141
17.3.9-beta0
17.2.520
17.2.510
17.2.490
17.2.48-beta1
17.2.29-beta0
17.2.472
17.2.460
17.2.410
17.2.390
17.2.360
17.2.351
17.2.340
17.2.28-beta0
17.1.490
17.1.481
17.1.470
17.1.430
17.1.420
17.1.400
17.1.380
17.1.32-beta1
16.4.550
16.4.540
16.4.530
16.4.521
17.1.1-beta1
16.4.480
16.4.471
16.4.460
16.4.440
16.4.421
16.4.40-beta0
16.3.341
16.3.330
16.3.300
16.3.290
16.3.270
16.3.242
16.3.221
16.3.211
16.3.170
16.2.520
16.2.510
16.2.501
16.2.491
16.2.480
16.2.470
16.2.460
16.2.450
16.2.441
16.2.410

Package Sidebar

Install

npm i @syncfusion/ej2-react-richtexteditor

Weekly Downloads

10,756

Version

29.1.37

License

SEE LICENSE IN license

Unpacked Size

49.2 kB

Total Files

146

Last publish

Collaborators

  • syncfusionorg
  • essentialjs2
  • syncfusion-javascript