Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The JavaScript Rich Text Editor is a feature-rich WYSIWYG HTML editor and WYSIWYG Markdown editor. It is widely used to create blogs, forum posts, notes sections, support tickets (incidents), comment sections, messaging applications, and more. The control provides an efficient user interface for a better editing experience with mobile support. It has various tools to edit and format rich content, and it returns valid HTML markup or Markdown (MD) content. Users can insert images, links, tables, and lists with its modular architecture.


Why choose the Syncfusion JavaScript Rich Text Editor?

Javascript Wysiwyg Editor image

WYSIWYG editor

The JavaScript Rich Text Editor control can be used as a WYSIWYG HTML editor or a Markdown editor, and it also supports iframe editing with configurable iframe characteristics.

Javascript Rich Text Editor Easy Interaction image

Easy interaction

You can easily format the text and paragraphs by setting the editor’s foreground and background colors; adding ordered and unordered custom lists; and specifying the font, italicization, underlining, strikethrough, and bolding.

Javascript Rich Text Editor Flexible Editing image

Flexible editing

For a better editing experience, the JavaScript Rich Text Editor control offers a variety of tools and choices. So, you can quickly insert images, videos, hyperlinks, and tables; merge table cells; and configure keys.

Javascript Rich Text Editor Html Preview image

Preview the HTML code

Examine and edit the HTML code directly in the source code and view the preview result (HTML live editor).

Javascript Rich Text Editor Tools image

Toolbar

The WYSIWYG Rich Text Editor for JavaScript offers a variety of toolbar options that are fully customizable. The options allow multirow, expanding, quick, and floating toolbars. The tool commands are grouped based on related functionality.

Javascript Rich Text Editor Adaptive Ui image

Adapts to any resolution

The Rich Text Editor has a highly responsive layout and an optimized design for desktops, tablets, and smartphones. It works well on all mobile phones that use iOS, Android, or Windows OS.

Javascript Rich Text Editor Third Party Integration image

Integrate with third-party libraries

It’s easy to integrate third-party libraries, like a spell checker or code mirror, with the Rich Text Editor to improve the content.

Javascript Rich Text Editor Globalization image

Globalization and localization

Enable users from different locales to use the Rich Text Editor by formatting dates, currency, and numbering to suit preferences.


AI-ready Rich Text Editor

Transform your JavaScript applications with our AI-ready Rich Text Editor, featuring grammar correction, multilingual support, rephrasing, and summarization.

See how AI improves your writing

AI-powered JavaScript Rich Text Editor component.


JavaScript Rich Text Editor code example

Easily get started with the JavaScript Rich Text Editor using a few simple lines of HTML and TypeScript code, as demonstrated below. Also explore this JavaScript Rich Text Editor example, which shows how to render and configure the control.

<div class="control-section">
    <div id="defaultRTE">
    </div>
</div>
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
import {RichTextEditor, Toolbar, Link, Image, HtmlEditor
} from '@syncfusion/ej2-richtexteditor';
RichTextEditor.Inject(Toolbar, Link, Image, HtmlEditor);

let defaultRTE: RichTextEditor = new RichTextEditor({
  value: `<p>The Rich Text Editor component is a WYSIWYG ("what you see is what you get") editor that provides the best user experience to create and update content. Users can format their content using standard toolbar commands.</p>
            <p><b>Key features:</b></p>
            <ul>
                <li>
                    <p>Provides &lt;IFRAME&gt; and &lt;DIV&gt; modes</p>
                </li>
                <li>
                    <p>Capable of handling Markdown editing.</p>
                </li>
            </ul>`
});
defaultRTE.appendTo('#defaultRTE');

HTML editor toolbar

The WYSIWYG HTML editor toolbar provides a variety of commands for editing and formatting the content. Format text and paragraphs and insert images, hyperlinks, tables, and lists. The tool commands are grouped together based on related functionality.

JavaScript WYSIWYG HTML editor with multirow toolbar.

Multi-row toolbar

The HTML5 WYSIWYG editor toolbar commands that overflow are wrapped in the following rows within the toolbar.

JavaScript WYSIWYG HTML editor with expandable toolbar.

Expand toolbar

The overflow toolbar commands hidden in the next row become visible when the toolbar is expanded using the expand icon.

JavaScript Rich Text Editor with quick toolbar.

Quick toolbar

This toolbar contains frequently used commands related to text, images, tables, and links. It helps access and format these elements quickly.

JavaScript WYSIWYG HTML editor with floating toolbar.

Floating toolbar

The HTML5 WYSIWYG editor toolbar does not stick to the top of the editor. It floats within the editor area when scrolling the current page.

Fully customizable tools in JavaScript Rich Text Editor.

Fully customizable

The toolbar buttons of the HTML5 Rich Text Editor control are fully customizable. Add or remove buttons and group commands based on category. This helps to design the toolbar based on application needs, like for HTML blog editing, HTML email composing, and more.

JavaScript WYSIWYG HTML editor with custom toolbar.

Custom tool

Add your own commands (tools) with actions to the built-in commands in the toolbar.


JavaScript WYSIWYG inline HTML editor.

Inline mode

The JavaScript Rich Text Editor displays an inline HTML editor when the content in an editable area is clicked or selected.


Mention and hashtag

When composing content in the JavaScript Rich Text Editor, users or groups can be tagged or selected from a suggestion list.

JavaScript Rich Text Editor with mention and hashtag.


Enter and Shift+Enter key configurations

Customize tags inserted when pressing the Enter key and the Shift + Enter keys. You can configure the control to insert specific tags like P, which creates a <p> tag; DIV, which creates a <div> tag; and BR, which creates a
tag when either key combination is used.


Editing experience

The JavaScript Rich Text Editor control provides a wide range of tools and options for a better editing experience.

Insert images in JavaScript WYSIWYG editor.

Insert images

Insert images in the content from a local path or server path with image captions and then link URLs to the images. Upload images to a server with drag-and-drop or file upload functionality. Additionally, the editor offers options to insert images in BLOB or Base64 formats.

Insert hyperlinks in WYSIWYG HTML5 editor.

Insert or change the hyperlinks with customization options such as display text, tooltip, and link to be opened in a new window.

Insert tables in JavaScript Markdown Text Editor.

Insert tables

Insert and edit HTML tables to display grid-like tabular data in the JavaScript WYSIWYG Rich Text Editor. Manipulate the table and its elements dynamically: insert or remove rows and columns; resize a whole table, rows, or columns; and remove a table.

JavaScript Rich Text Editor with table merge and split.

Table cell merge and split

Merge two or more row or column cells into a single cell with their contents. Also, a single cell can be split both horizontally and vertically.

JavaScript Rich Text Editor with text alignment tools.

Text alignment

Built-in settings are available to justify content or align it to the left, center, or right.


JavaScript Rich Text Editor with emoji.

Insert emoji

Incorporate emoji into your content. Search through an extensive collection of emoji, selecting the ones that resonate with your message. Access the emoji picker by simply pressing the colon (:) key in the JavaScript Rich Text Editor.


Formatting text

  • Format selected content, whole paragraphs, or specific words or characters.
  • Format headings, quotations, code, paragraphs, etc.
  • Bold, italicize, underline, strikethrough, or capitalize letters and words.
  • Change paragraph indentation and spacing.
  • Select fonts and font sizes.
  • Use subscripts and superscripts.
  • Select the font color and background color for the content.

JavaScript Rich Text Editor formatting text.


Custom list in JavaScript WYSIWYG HTML editor.

Adding custom lists

Create ordered (numbered) or unordered (bulleted) lists to organize the content in the JavaScript Rich Text Editor. The control provides support to change the bullet appearance for the unordered lists to circles or squares. It also supports different numbering formats for ordered lists such as lowercase Greek or uppercase Roman.


Full screen text editor

Make the JavaScript HTML5 editor full screen (a full-page editor) for editing the content.

Full screen text editor in JavaScript WYSIWYG HTML editor.


JavaScript Markdown editor with format on pasting.

Paste from Microsoft Word and Excel

The JavaScript Markdown Editor offers built-in options to paste content with images to the editor from Microsoft Word, Microsoft Outlook, and Microsoft Excel by filtering out tags, attributes, and styles. Additionally, there are options to choose whether the content should be pasted as plain text, cleaned styles, or source-formatting styles.


Auto-hyperlinking of URL

The JavaScript Rich Text Editor is configured to turn text into a hyperlink automatically when a URL is typed as a plain text.

Javascript Rich Text Editor Autolinking image


Validation in JavaScript WYSIWYG HTML editor.

JavaScript form validations

The JavaScript Rich Text Editor is a form control that supports HTML forms and obtains values on form submission actions. The two types of validation are:

  • Required validation
  • Maximum length validation

Limit content length

Restrict the content’s maximum number of characters.

JavaScript WYSIWYG HTML editor maximum length.


Javascript Rich Text Editor Resize image

Resizable editor

The JavaScript Rich Text Editor has built-in resizing support that widens or shrinks the content area.


Insert an image through file manager

The integrated file manager within the Rich Text Editor can be used to insert and upload images from cloud storage or a server.

Insert an image through file manager in JavaScript WYSIWYG HTML editor.


JavaScript Rich Text Editor with format painter.

Format painter

Use the format painter to copy formatting and apply it to your content. Access the format painter through the toolbar or keyboard shortcuts for quick and easy application. Take advantage of the sticky mode by double-clicking the toolbar button, which allows you to apply formats to multiple locations.


Rich Text Editor in JavaScript with clipboard operations.

Cut, copy, and paste

The Rich Text Editor allows users to use clipboard operations (cut, copy, and paste).

Rich Text Editor in JavaScript with undo redo actions.

Undo/redo manager

The Rich Text Editor manages the undo/redo action history to store editing actions.

JavaScript Rich Text Editor with print support.

Print the WYSIWYG Rich Text Editor content either by using the print option from the toolbar or programmatically with applied formatting.


Responsive JavaScript text editor.

Touch-friendly and responsive WYSIWYG editor

The JavaScript Text Editor (mobile HTML editor) recognizes touch gestures, allowing the user to swipe left or right to move the toolbar. The responsive, mobile-friendly design provides the best user experience on all mobile, tablet, and desktop form factors.

JavaScript Rich Text Editor with customizable themes.

Built-in and customizable themes

JavaScript Rich Text Editor is shipped with several built-in themes: Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, Fluent, and high contrast.

JavaScript Rich Text Editor APIs.

Developer-friendly APIs

There are sufficient client-side APIs available to optimize content editing.


HTML editor accessibility

Keyboard navigation in JavaScript Rich Text Editor.

Keyboard navigation

The JavaScript Rich Text Editor component ensures that every cell is accessible using the keyboard. Major features like sort, select, and edit can be performed using keyboard commands alone; no mouse interaction is required. This helps in creating highly accessible applications using this component.

JavaScript Rich Text Editor accessibility.

Screen reader

The JavaScript Rich Text Editor view has complete WAI-ARIA accessibility support. Its UI includes high-contrast visual elements that help visually impaired people to have the best viewing experience. Also, valid UI descriptions are easily accessible through assistive technologies such as screen readers.

Show right to left in JavaScript Rich Text Editor.

Right to Left (RTL)

The HTML5/JavaScript Rich Text Editor supports right-to-left rendering, allowing the text and layout of the text editor to be displayed from right to left. This improves the user experience and accessibility for users of RTL languages such as Arabic, Farsi, and Hebrew.





Other supported frameworks

The Rich Text Editor is also available for the Blazor, React, Angular, and Vue frameworks. Explore its platform-specific options through the following links:

Supported browsers

The JavaScript Rich Text Editor works well with all modern web browsers, including Chrome, Firefox, Edge, Safari, and Opera.

Supported browsers in JavaScript Rich Text Editor.

145+ JAVASCRIPT UI CONTROLS

Frequently Asked Questions

The Syncfusion Rich Text Editor allows you to:

  • Edit WYSIWYG HTML and Markdown content with a rich set of tools for modern web and mobile applications.

  • Easily incorporate the editor into blog editor, message, HTML email composer, and discussion forum-like applications.

  • Make a floating toolbar or inline editor that allows you to select any editable element on the page and edit in place.

  • Enjoy simple configuration and API.

  • Render on all modern browsers with ease.
  • Utilize atouch-friendly and responsive UI.
  • Take advantage of expansive learning resources such as demos and documentation to get started quickly with the control.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

See Real Success Stories

Developers around the world trust Syncfusion’s Essential Studio to simplify complex projects and speed up delivery. With a vast library of UI controls, powerful SDKs, and reliable support, Essential Studio helps teams build enterprise-ready applications with confidence.

Read Our Customer Stories


Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Up arrow icon