Getting Started with Angular Rich Text Editor
20 Jul 20265 minutes to read
The Angular Rich Text Editor is a WYSIWYG (What You See Is What You Get) editor that enables users to create, edit, and format rich text content with features like multimedia insertion, lists, and links. This section explains the steps to create a simple Angular Rich Text Editor component and configure its core functionalities.
Ready to streamline your Syncfusion® Angular development? Discover the full potential of Syncfusion® Angular components with Syncfusion® AI Coding Assistant. Effortlessly integrate, configure, and enhance your projects with intelligent, context-aware code suggestions, streamlined setups, and real-time insights—all seamlessly integrated into your preferred AI-powered IDEs like VS Code, Cursor, Syncfusion® CodeStudio and more. Explore Syncfusion® AI Coding Assistant
To get started quickly with the Angular Rich Text Editor using CLI and Schematics, refer to this video tutorial:
Prerequisites
This guide uses the Angular CLI to manage Angular applications. It requires Node 24.13.0 or higher. For more information about Angular CLI and its features, refer the Angular CLI.
NOTE
For information about supported Angular versions and Syncfusion package compatibility, refer to the Version Compatibility documentation.
Set Up the Angular Environment
You can use Angular CLI to set up your Angular applications. To install Angular CLI use the following command.
npm install -g @angular/cliCreate an Angular Application
Create a new Angular application using the following Angular CLI command:
ng new my-appThis command will prompt you for a few settings for the new project, such as which stylesheet format to use.

By default, the Angular CLI creates a CSS-based application.
Then the CLI also displays an additional prompt asking whether to enable Server‑Side Rendering (SSR) and Static Site Generation (SSG), as shown below:

For this setup, when prompted for the Server-side rendering (SSR) option, choose the appropriate configuration.
Then the CLI displays another prompt related to AI tooling support, as shown below:

Any preferred option can be selected based on the development workflow or project needs.
Next, navigate to the project folder:
cd my-appAdding Rich Text Editor package
All available Essential JS 2 packages are published in the npmjs.com registry. Install the Rich Text Editor component with the following command:
npm install @syncfusion/ej2-angular-richtexteditorAdding CSS reference
Syncfusion provides multiple themes for the Rich Text Editor component. For a complete list of available themes, refer to the themes packages.
To apply the Material 3 theme, install the corresponding theme package by using the following command:
npm install @syncfusion/ej2-material3-themeThe installed theme package includes an index.css file that automatically imports all the required dependency styles. Import the following stylesheet into src/styles.css.
@import '../node_modules/@syncfusion/ej2-material3-theme/styles/rich-text-editor/index.css';Module Injection
The following modules are used to utilize the basic capabilities of the Rich Text Editor:
- HtmlEditorService - Inject this module to use the Rich Text Editor as HTML editor.
- ImageService - Inject this module to use the image feature in Rich Text Editor.
- LinkService - Inject this module to use the link feature in Rich Text Editor.
- QuickToolbarService - Inject this module to use the quick toolbar feature for the target element.
- ToolbarService - Inject this module to use the Toolbar feature.
These modules can be injected as services through the component’s providers array, as demonstrated in the following example.
import { RichTextEditorModule } from '@syncfusion/ej2-angular-richtexteditor';
import { Component } from '@angular/core';
import { ToolbarService, LinkService, ImageService, HtmlEditorService, QuickToolbarService } from '@syncfusion/ej2-angular-richtexteditor';
@Component({
imports: [ RichTextEditorModule ],
standalone: true,
selector: 'app-root',
template: `<ejs-richtexteditor></ejs-richtexteditor>`,
providers: [ToolbarService, LinkService, ImageService, HtmlEditorService, QuickToolbarService]
})
export class App {
}TIPS
Additional feature modules are available here.
Adding Rich Text Editor component
Modify the template in the src/app/app.ts file to render the Rich Text Editor component. Add the Angular Rich Text Editor by using the <ejs-richtexteditor> selector in the template section of the app.ts file.
import { RichTextEditorModule } from '@syncfusion/ej2-angular-richtexteditor';
import { Component } from '@angular/core';
import { ToolbarService, LinkService, ImageService, HtmlEditorService, QuickToolbarService } from '@syncfusion/ej2-angular-richtexteditor';
@Component({
imports: [ RichTextEditorModule ],
standalone: true,
selector: 'app-root',
template: `<ejs-richtexteditor></ejs-richtexteditor>`,
providers: [ToolbarService, LinkService, ImageService, HtmlEditorService, QuickToolbarService]
})
export class App {
}@import '../node_modules/@syncfusion/ej2-material3-theme/styles/rich-text-editor/index.css';Run the Application
Use the following command to run the application in the browser.
ng serve --openThe Syncfusion® Angular Rich Text Editor is displayed in the browser as shown below.

See also
Documentation links
- How to change the editor type
- How to render the iframe
- How to render the toolbar in inline mode
- Accessibility in Rich Text Editor
- Keyboard support in Rich Text Editor
- Globalization in Rich Text Editor
Live samples