@syncfusion/ej2-react-richtexteditor

29.2.5 • 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
21.1.42411beta
29.2.50latest

Version History

VersionDownloads (Last 7 Days)Published
29.2.50
29.2.4852
29.1.40380
29.1.3948
29.1.37193
29.1.35462
29.1.3486
29.1.3329
28.2.11432
28.2.999
28.2.788
28.2.6356
28.2.545
28.2.445
28.2.3311
28.1.415
28.1.391
28.1.3839
28.1.3743
28.1.3610
28.1.3535
28.1.338
27.2.5677
27.2.436
27.2.31
27.2.220
27.1.5868
27.1.5755
27.1.5599
27.1.52155
27.1.5111
27.1.500
27.1.489
26.2.141,631
26.2.1319
26.2.1210
26.2.111
26.2.10116
26.2.931
26.2.81
26.2.71
26.2.515
26.2.40
26.1.4287
26.1.411
26.1.403
26.1.3869
26.1.3543
25.2.7436
25.2.610
25.2.580
25.2.415
25.2.319
25.1.4253
25.1.4119
25.1.404
25.1.392
25.1.380
25.1.370
25.1.35109
24.2.9301
24.2.81
24.2.710
24.2.43
24.2.315
24.1.470
24.1.4693
24.1.457
24.1.434
24.1.4122
23.2.7432
23.2.60
23.2.5195
23.2.40
23.1.4465
23.1.431
23.1.416
23.1.4015
23.1.390
23.1.360
22.2.12129
22.2.1011
22.2.921
22.2.5312
22.1.390
22.1.386
22.1.362
21.1.42411
21.1.360
22.1.3441
21.2.10242
21.2.935
21.2.80
21.2.60
21.2.52
21.2.412
21.2.314
21.1.4159
21.1.392
21.1.372
21.1.350
20.4.53314
20.4.520
20.4.511
20.4.501
20.4.491
20.4.480
20.4.440
20.4.4370
20.4.420
20.4.402
20.4.380
20.3.6137
20.3.600
20.3.590
20.3.5621
20.3.500
20.3.470
20.2.5022
20.2.490
18.4.42-709433
20.2.461
20.2.450
20.2.441
20.2.430
20.2.400
20.2.390
20.2.3815
20.2.36340
20.1.6113
20.1.6021
20.1.590
20.1.5831
20.1.570
20.1.560
20.1.550
20.1.520
20.1.511
20.1.500
20.1.480
20.1.471
19.4.56498
19.4.550
19.4.540
19.4.530
19.4.522
19.4.5066
19.4.480
19.4.472
19.4.400
19.4.382
19.3.577
19.3.550
19.3.530
19.3.470
19.3.460
19.3.450
19.3.440
19.3.430
19.2.627
19.2.600
19.2.593
19.2.570
19.2.560
19.2.551
19.2.512
19.2.490
19.2.480
19.2.470
19.2.460
19.2.440
19.1.6924
19.1.670
19.1.663
19.1.651
19.1.640
19.1.630
19.1.590
19.1.572
19.1.560
19.1.550
19.1.540
18.4.49113
18.4.480
18.4.470
18.4.460
18.4.440
18.4.420
18.4.390
18.4.350
17.2.55-12054790
18.4.340
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.441
18.3.420
18.3.400
18.3.350
18.2.564
18.2.550
18.2.540
18.2.480
18.2.460
18.2.450
18.2.440
18.1.577
18.1.543
18.1.530
18.1.520
18.1.480
18.1.450
18.1.440
18.1.430
18.1.422
18.1.36-beta0
17.4.550
17.4.510
17.4.490
17.4.480
17.4.470
17.4.460
17.4.440
17.4.430
17.4.400
17.4.390
17.3.294
17.3.280
17.3.270
17.3.260
17.3.190
17.3.160
17.3.140
17.3.9-beta0
17.2.520
17.2.510
17.2.490
17.2.48-beta0
17.2.29-beta0
17.2.470
17.2.460
17.2.410
17.2.390
17.2.360
17.2.350
17.2.340
17.2.28-beta0
17.1.490
17.1.480
17.1.470
17.1.430
17.1.420
17.1.400
17.1.380
17.1.32-beta0
16.4.550
16.4.540
16.4.530
16.4.520
17.1.1-beta0
16.4.480
16.4.470
16.4.460
16.4.440
16.4.420
16.4.40-beta0
16.3.340
16.3.330
16.3.300
16.3.290
16.3.270
16.3.240
16.3.220
16.3.210
16.3.170
16.2.521
16.2.510
16.2.500
16.2.490
16.2.480
16.2.471
16.2.460
16.2.450
16.2.440
16.2.410

Package Sidebar

Install

npm i @syncfusion/ej2-react-richtexteditor

Weekly Downloads

11,596

Version

29.2.5

License

SEE LICENSE IN license

Unpacked Size

49.2 kB

Total Files

146

Last publish

Collaborators

  • syncfusionorg
  • essentialjs2
  • syncfusion-javascript