Implementing Syncfusion Angular Rich Text Editor
The Syncfusion Angular Rich Text Editor is a full-featured WYSIWYG editor that enables users to create, edit, and format rich text content. It supports HTML and Markdown editing modes, multimedia insertion, AI assistance, smart editing features, and deep customization.
When to Use This Skill
Use this skill when you need to:
- Content Editing UI: Add a rich text / WYSIWYG editor to an Angular application
- HTML or Markdown Output: Capture formatted content as HTML or Markdown
- Media-Rich Editors: Allow image, audio, video, and file insertion
- AI-Assisted Writing: Integrate AI content generation into the editor
- Smart Editing Features: Add mentions, emoji picker, slash commands, or mail merge
- Custom Toolbar: Configure, extend, or restrict toolbar items and tools
- Form Integration: Use RTE with Angular Reactive or Template-driven forms
- Document Import/Export: Import from Word or export to PDF/Word
Component Overview
The <ejs-richtexteditor> component from @syncfusion/ej2-angular-richtexteditor provides:
- HTML and Markdown editing modes
- Configurable toolbar (expand, multirow, scrollable, popup)
- Image, video, audio, and file insertion with upload support
- Inline, IFrame, and resizable editor variants
- Smart editing: Mentions, Emoji Picker, Slash Menu, Mail Merge
- AI assistant integration
- Import/Export (Word, PDF)
- Full accessibility (WCAG 2.1), keyboard navigation, RTL support
- Multiple themes: Tailwind 3, Material 3, Bootstrap 5, Fluent 2
Quick Start
npm install @syncfusion/ej2-angular-richtexteditor
npm install @syncfusion/ej2-material3-theme
import { Component } from '@angular/core';
import { RichTextEditorModule } from '@syncfusion/ej2-angular-richtexteditor';
import {
ToolbarService, LinkService, ImageService,
HtmlEditorService, QuickToolbarService
} from '@syncfusion/ej2-angular-richtexteditor';
@Component({
imports: [RichTextEditorModule],
standalone: true,
selector: 'app-root',
template: `<ejs-richtexteditor [(value)]="content"></ejs-richtexteditor>`,
providers: [ToolbarService, LinkService, ImageService, HtmlEditorService, QuickToolbarService]
})
export class AppComponent {
public content: string = '<p>Start editing here...</p>';
}
CSS (styles.css):
@import '../node_modules/@syncfusion/ej2-material3-theme/styles/rich-text-editor/index.css';
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
When to read: First-time setup, installation, basic implementation, module injection
Topics covered:
- Installing
@syncfusion/ej2-angular-richtexteditor
- Module imports:
RichTextEditorModule vs RichTextEditorAllModule
- Service injection: all available services and what they unlock
- CSS theme imports (Material3, Tailwind3, Bootstrap5, Fluent2)
- Standalone component vs NgModule setup
- Basic
<ejs-richtexteditor> with value binding
Editor Types
📄 Read: references/editor-types.md
When to read: Choosing the right editor rendering mode
Topics covered:
- Default (DIV-based) editor — standard use case
- IFrame editor — isolated styling, CSS encapsulation
- Inline editing — edit content directly in-page
- Resizable editor — user-resizable editor area
- Switching between HTML mode and Markdown mode
- When to choose each type
Toolbar Configuration
📄 Read: references/toolbar.md
When to read: Customizing toolbar layout, position, or items
Topics covered:
- Toolbar types: Expand, MultiRow, Scrollable, Popup (floating)
- Toolbar position: top or bottom
- Quick toolbar (image, link, table context toolbars)
- Configuring
toolbarSettings.items array
- Disabling or enabling toolbar items dynamically
- Toolbar with separators (
|) and line breaks
Built-in and Custom Tools
📄 Read: references/tools.md
When to read: Working with text formatting, custom toolbar items, or fullscreen
Topics covered:
- Built-in tools overview (all available tool names)
- Text formatting tools: Bold, Italic, FontName, FontSize, Color, Alignment
- Styling tools: Lists, Indent, Formats
- Fullscreen tool
- Creating custom toolbar tools with commands
- Styling custom tool buttons
Inserting Images, Video, Audio & Files
📄 Read: references/insert-image-media.md
When to read: Handling media insertion, uploads, or the file browser
Topics covered:
- Image insertion (URL, file upload, base64)
- Server-side upload handler configuration
- Image resize, alignment, and alt text
- Video insertion and embedding
- Audio insertion
- File browser integration (
FileManagerService)
- Renaming images on server after upload
- Checking image size before insert
Tables and Links
📄 Read: references/table-and-links.md
When to read: Working with tables or hyperlinks inside the editor
Topics covered:
- Inserting and configuring tables
- Table resize, merge, split cells, add/remove rows and columns
- Table styles and borders
- Link insertion and editing
insertLink dialog configuration
- Opening links in new tab, link validation
Editor Value, Selection & Commands
📄 Read: references/editor-value-and-selection.md
When to read: Programmatically reading/writing content or controlling the editor
Topics covered:
- Getting and setting the HTML value
- Getting and setting Markdown value
executeCommand API (bold, italic, insertHTML, etc.)
- Selection range APIs:
getRange, setRange
- Positioning cursor at specific location
- Capturing keyboard shortcuts to update value
- Undo/redo programmatic control
Properties
📄 Read: references/properties.md
When to read: Configuring editor behavior, appearance, or feature settings
Topics covered:
- AI Assistant configuration (
aiAssistantSettings)
- Auto-save settings (
autoSaveOnIdle)
- Color palette configuration (
backgroundColor, fontColor)
- Code block and format lists
- Editor mode settings (
editorMode, enterKey)
- Emoji picker configuration
- Feature flags (enableAutoUrl, enableResize, enableXhtml, etc.)
- Import/Export settings (PDF, Word)
- IFrame and inline mode configuration
- Media insertion settings (image, audio, video)
- Styling properties (cssClass, height, htmlAttributes)
- Toolbar and format configuration
- File manager integration
Methods
📄 Read: references/methods.md
When to read: Calling programmatic APIs to control the editor
Topics covered:
- AI Assistant methods (
addAIPromptResponse, clearAIPromptHistory, executeAIPrompt, getAIPromptHistory)
- Content retrieval methods (
getHtml, getText, getXhtml, getContent, getCharCount)
- Content manipulation (
executeCommand, clearUndoRedo, sanitizeHtml)
- Dialog management (
showDialog, closeDialog)
- Focus management (
focusIn, focusOut)
- Selection methods (
getRange, selectRange, selectAll, getSelection, getSelectedHtml)
- Toolbar management (
enableToolbarItem, disableToolbarItem, removeToolbarItem)
- Popup and UI control (
showEmojiPicker, showFullScreen, showSourceCode, showInlineToolbar, hideInlineToolbar, refreshUI)
- Component lifecycle (
destroy)
Events — Core
📄 Read: references/events-core.md
When to read: Handling lifecycle, action, content change, selection, dialog, popup, quick toolbar, or resize events
Topics covered:
- Lifecycle events (
created, destroyed, focus, blur)
- Action events (
actionBegin, actionComplete)
- Content change events (
change)
- Selection events (
selectionChanged)
- Dialog events (
beforeDialogOpen, dialogOpen, beforeDialogClose, dialogClose)
- Popup events (
beforePopupOpen, beforePopupClose)
- Quick toolbar events (
beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose)
- Resize events (
resizeStart, resizing, resizeStop)
Events — Media, Upload & Toolbar
📄 Read: references/events-media-upload.md
When to read: Handling AI assistant, media, paste/clipboard, toolbar, upload, or import/export events
Topics covered:
- AI Assistant events (
aiAssistantPromptRequest, aiAssistantStopRespondingClick, aiAssistantToolbarClick)
- Media events (
afterImageDelete, afterMediaDelete, beforeImageDrop, beforeMediaDrop)
- Paste and clipboard events (
beforePasteCleanup, afterPasteCleanup, beforeClipboardWrite)
- Toolbar events (
toolbarClick, updatedToolbarStatus, slashMenuItemSelect)
- Upload events — image lifecycle (
beforeImageUpload, imageUploading, imageUploadSuccess, imageUploadFailed, imageSelected, imageRemoving)
- Upload events — media lifecycle (
beforeFileUpload, fileUploading, fileUploadSuccess, fileUploadFailed, fileSelected, fileRemoving)
- Document import/export events (
documentExporting, wordImporting)
Smart Editing Features
📄 Read: references/smart-editing.md
When to read: Adding mentions, emoji, slash commands, or mail merge
Topics covered:
- Mentions (
@user) — configuration and data source
- Emoji picker — enabling and customizing
- Slash command menu — enabling
/ trigger commands
- Mail merge — inserting merge fields into content
- Combining multiple smart editing features
AI Assistant Integration
📄 Read: references/ai-assistant.md
When to read: Integrating AI content generation into the editor
Topics covered:
- AI AssistView integration overview
AIAssistantService injection
- Configuring AI properties (endpoint, model, prompts)
- Custom AI prompt handling in Angular
- Toolbar AI button setup
- AI content generation and insertion workflow
Clipboard and Paste Cleanup
📄 Read: references/clipboard-and-paste.md
When to read: Controlling what happens when content is pasted into the editor
Topics covered:
PasteCleanupService — enabling paste cleanup
- Allowing/denying specific HTML tags and attributes
- Cleaning up Word and Excel paste formatting
ClipboardCleanupService for copy/cut cleanup
afterPasteCleanup event handling
- Configuring paste as plain text
Styling and Accessibility
📄 Read: references/style-and-accessibility.md
When to read: Customizing editor appearance or ensuring accessibility compliance
Topics covered:
- CSS class customization and theming
- Style encapsulation in IFrame mode
- Custom placeholder styling
- WCAG 2.1 compliance overview
- Keyboard navigation and shortcuts
- ARIA attributes and screen reader support
- Focus management
Globalization and Localization
📄 Read: references/globalization-and-i18n.md
When to read: Supporting multiple languages, RTL, or locale-specific formatting
Topics covered:
- Localization setup with
L10n
- RTL (Right-to-Left) support
- Custom locale string overrides
- Date and number formatting within the editor
Import, Export & Spell Check
📄 Read: references/import-export-spellcheck.md
When to read: Importing Word documents or exporting editor content, or adding spell/grammar check
Topics covered:
ImportExportService injection
- Importing from Word documents
- Exporting to PDF, HTML, or Word
- Spell check integration
- Grammar check integration
- Web Spell Checker plugin setup
Validation and Security
📄 Read: references/validation-and-security.md
When to read: Using the editor in forms or enforcing content security
Topics covered:
- Form validation with Angular Reactive forms
- Form validation with Template-driven forms
- XHTML validation
- Read-only mode
- Content sanitization
- XSS prevention strategies
Integrations and How-To
📄 Read: references/integrations-and-how-to.md
When to read: Integrating third-party libraries or solving common configuration scenarios
Topics covered:
- CodeMirror source-code editor integration
- HighlightJS syntax highlighting for code blocks
- Embedly rich media preview integration
- Tailwind CSS preflight conflict fix
- Adding Google Fonts to font picker
- File attachments support
- RTE inside Angular Dialog component
- RTE inside Angular Tab component
- Changing default font family
- Formatting code blocks
Common Patterns
Two-Way Value Binding
// Template
<ejs-richtexteditor [(value)]="htmlContent"></ejs-richtexteditor>
// Component
public htmlContent: string = '<p>Initial content</p>';
One-Way Binding + Change Event
<ejs-richtexteditor [value]="htmlContent" (change)="onChange($event)">
</ejs-richtexteditor>
onChange(args: ChangeEventArgs): void {
this.htmlContent = args.value;
}
Using with Reactive Forms
import { FormControl, ReactiveFormsModule } from '@angular/forms';
// Template
<ejs-richtexteditor formControlName="content"></ejs-richtexteditor>
// Component
this.form = new FormGroup({
content: new FormControl('<p></p>', Validators.required)
});
Key Services Reference
| Service |
What it enables |
ToolbarService |
Toolbar rendering and item management |
HtmlEditorService |
HTML editing mode |
MarkdownEditorService |
Markdown editing mode |
LinkService |
Hyperlink insertion and editing |
ImageService |
Image insertion and management |
TableService |
Table insertion and editing |
QuickToolbarService |
Floating context toolbars |
FileManagerService |
File browser dialog |
PasteCleanupService |
Paste content sanitization |
ResizeService |
Editor resizing handle |
ImportExportService |
Word/PDF import and export |
AIAssistantService |
AI assistant integration |
EmojiPickerService |
Emoji picker dialog |
SlashMenuService |
/ slash command menu |
CodeBlockService |
Inline code block formatting |
AudioService |
Audio insertion |
VideoService |
Video insertion |
FormatPainterService |
Format painting (copy/apply styles) |
ClipboardCleanupService |
Copy/cut clipboard cleanup |
AutoFormatService |
Auto Markdown-to-HTML conversion |
Related Skills
1---2name: syncfusion-angular-rich-text-editor3description: Implements the Syncfusion Angular Rich Text Editor (ejs-richtexteditor) from @syncfusion/ej2-angular-richtexteditor using RichTextEditorModule, HtmlEditorService, and MarkdownEditorService.Use this skill for toolbar configuration, image/video/audio insertion, paste cleanup, AI assistant integration, emoji picker, slash menu, mentions, import/export Word/PDF, form validation, and source code view in Angular applications.4---56# Implementing Syncfusion Angular Rich Text Editor78The Syncfusion Angular Rich Text Editor is a full-featured WYSIWYG editor that enables users to create, edit, and format rich text content. It supports HTML and Markdown editing modes, multimedia insertion, AI assistance, smart editing features, and deep customization.910## When to Use This Skill1112Use this skill when you need to:13- **Content Editing UI**: Add a rich text / WYSIWYG editor to an Angular application14- **HTML or Markdown Output**: Capture formatted content as HTML or Markdown15- **Media-Rich Editors**: Allow image, audio, video, and file insertion16- **AI-Assisted Writing**: Integrate AI content generation into the editor17- **Smart Editing Features**: Add mentions, emoji picker, slash commands, or mail merge18- **Custom Toolbar**: Configure, extend, or restrict toolbar items and tools19- **Form Integration**: Use RTE with Angular Reactive or Template-driven forms20- **Document Import/Export**: Import from Word or export to PDF/Word2122## Component Overview2324The `<ejs-richtexteditor>` component from `@syncfusion/ej2-angular-richtexteditor` provides:25- HTML and Markdown editing modes26- Configurable toolbar (expand, multirow, scrollable, popup)27- Image, video, audio, and file insertion with upload support28- Inline, IFrame, and resizable editor variants29- Smart editing: Mentions, Emoji Picker, Slash Menu, Mail Merge30- AI assistant integration31- Import/Export (Word, PDF)32- Full accessibility (WCAG 2.1), keyboard navigation, RTL support33- Multiple themes: Tailwind 3, Material 3, Bootstrap 5, Fluent 23435## Quick Start3637```bash38npm install @syncfusion/ej2-angular-richtexteditor39```40```bash41npm install @syncfusion/ej2-material3-theme42```4344```typescript45import { Component } from '@angular/core';46import { RichTextEditorModule } from '@syncfusion/ej2-angular-richtexteditor';47import {48 ToolbarService, LinkService, ImageService,49 HtmlEditorService, QuickToolbarService50} from '@syncfusion/ej2-angular-richtexteditor';5152@Component({53 imports: [RichTextEditorModule],54 standalone: true,55 selector: 'app-root',56 template: `<ejs-richtexteditor [(value)]="content"></ejs-richtexteditor>`,57 providers: [ToolbarService, LinkService, ImageService, HtmlEditorService, QuickToolbarService]58})59export class AppComponent {60 public content: string = '<p>Start editing here...</p>';61}62```6364**CSS (styles.css):**65```css66@import '../node_modules/@syncfusion/ej2-material3-theme/styles/rich-text-editor/index.css';67```6869## Documentation and Navigation Guide7071### Getting Started72📄 **Read:** [references/getting-started.md](references/getting-started.md)7374**When to read:** First-time setup, installation, basic implementation, module injection7576**Topics covered:**77- Installing `@syncfusion/ej2-angular-richtexteditor`78- Module imports: `RichTextEditorModule` vs `RichTextEditorAllModule`79- Service injection: all available services and what they unlock80- CSS theme imports (Material3, Tailwind3, Bootstrap5, Fluent2)81- Standalone component vs NgModule setup82- Basic `<ejs-richtexteditor>` with value binding8384---8586### Editor Types87📄 **Read:** [references/editor-types.md](references/editor-types.md)8889**When to read:** Choosing the right editor rendering mode9091**Topics covered:**92- Default (DIV-based) editor — standard use case93- IFrame editor — isolated styling, CSS encapsulation94- Inline editing — edit content directly in-page95- Resizable editor — user-resizable editor area96- Switching between HTML mode and Markdown mode97- When to choose each type9899---100101### Toolbar Configuration102📄 **Read:** [references/toolbar.md](references/toolbar.md)103104**When to read:** Customizing toolbar layout, position, or items105106**Topics covered:**107- Toolbar types: Expand, MultiRow, Scrollable, Popup (floating)108- Toolbar position: top or bottom109- Quick toolbar (image, link, table context toolbars)110- Configuring `toolbarSettings.items` array111- Disabling or enabling toolbar items dynamically112- Toolbar with separators (`|`) and line breaks113114---115116### Built-in and Custom Tools117📄 **Read:** [references/tools.md](references/tools.md)118119**When to read:** Working with text formatting, custom toolbar items, or fullscreen120121**Topics covered:**122- Built-in tools overview (all available tool names)123- Text formatting tools: Bold, Italic, FontName, FontSize, Color, Alignment124- Styling tools: Lists, Indent, Formats125- Fullscreen tool126- Creating custom toolbar tools with commands127- Styling custom tool buttons128129---130131### Inserting Images, Video, Audio & Files132📄 **Read:** [references/insert-image-media.md](references/insert-image-media.md)133134**When to read:** Handling media insertion, uploads, or the file browser135136**Topics covered:**137- Image insertion (URL, file upload, base64)138- Server-side upload handler configuration139- Image resize, alignment, and alt text140- Video insertion and embedding141- Audio insertion142- File browser integration (`FileManagerService`)143- Renaming images on server after upload144- Checking image size before insert145146---147148### Tables and Links149📄 **Read:** [references/table-and-links.md](references/table-and-links.md)150151**When to read:** Working with tables or hyperlinks inside the editor152153**Topics covered:**154- Inserting and configuring tables155- Table resize, merge, split cells, add/remove rows and columns156- Table styles and borders157- Link insertion and editing158- `insertLink` dialog configuration159- Opening links in new tab, link validation160161---162163### Editor Value, Selection & Commands164📄 **Read:** [references/editor-value-and-selection.md](references/editor-value-and-selection.md)165166**When to read:** Programmatically reading/writing content or controlling the editor167168**Topics covered:**169- Getting and setting the HTML value170- Getting and setting Markdown value171- `executeCommand` API (bold, italic, insertHTML, etc.)172- Selection range APIs: `getRange`, `setRange`173- Positioning cursor at specific location174- Capturing keyboard shortcuts to update value175- Undo/redo programmatic control176177---178179### Properties180📄 **Read:** [references/properties.md](references/properties.md)181182**When to read:** Configuring editor behavior, appearance, or feature settings183184**Topics covered:**185- AI Assistant configuration (`aiAssistantSettings`)186- Auto-save settings (`autoSaveOnIdle`)187- Color palette configuration (`backgroundColor`, `fontColor`)188- Code block and format lists189- Editor mode settings (`editorMode`, `enterKey`)190- Emoji picker configuration191- Feature flags (enableAutoUrl, enableResize, enableXhtml, etc.)192- Import/Export settings (PDF, Word)193- IFrame and inline mode configuration194- Media insertion settings (image, audio, video)195- Styling properties (cssClass, height, htmlAttributes)196- Toolbar and format configuration197- File manager integration198199---200201### Methods202📄 **Read:** [references/methods.md](references/methods.md)203204**When to read:** Calling programmatic APIs to control the editor205206**Topics covered:**207- AI Assistant methods (`addAIPromptResponse`, `clearAIPromptHistory`, `executeAIPrompt`, `getAIPromptHistory`)208- Content retrieval methods (`getHtml`, `getText`, `getXhtml`, `getContent`, `getCharCount`)209- Content manipulation (`executeCommand`, `clearUndoRedo`, `sanitizeHtml`)210- Dialog management (`showDialog`, `closeDialog`)211- Focus management (`focusIn`, `focusOut`)212- Selection methods (`getRange`, `selectRange`, `selectAll`, `getSelection`, `getSelectedHtml`)213- Toolbar management (`enableToolbarItem`, `disableToolbarItem`, `removeToolbarItem`)214- Popup and UI control (`showEmojiPicker`, `showFullScreen`, `showSourceCode`, `showInlineToolbar`, `hideInlineToolbar`, `refreshUI`)215- Component lifecycle (`destroy`)216217---218219### Events — Core220📄 **Read:** [references/events-core.md](references/events-core.md)221222**When to read:** Handling lifecycle, action, content change, selection, dialog, popup, quick toolbar, or resize events223224**Topics covered:**225- Lifecycle events (`created`, `destroyed`, `focus`, `blur`)226- Action events (`actionBegin`, `actionComplete`)227- Content change events (`change`)228- Selection events (`selectionChanged`)229- Dialog events (`beforeDialogOpen`, `dialogOpen`, `beforeDialogClose`, `dialogClose`)230- Popup events (`beforePopupOpen`, `beforePopupClose`)231- Quick toolbar events (`beforeQuickToolbarOpen`, `quickToolbarOpen`, `quickToolbarClose`)232- Resize events (`resizeStart`, `resizing`, `resizeStop`)233234---235236### Events — Media, Upload & Toolbar237📄 **Read:** [references/events-media-upload.md](references/events-media-upload.md)238239**When to read:** Handling AI assistant, media, paste/clipboard, toolbar, upload, or import/export events240241**Topics covered:**242- AI Assistant events (`aiAssistantPromptRequest`, `aiAssistantStopRespondingClick`, `aiAssistantToolbarClick`)243- Media events (`afterImageDelete`, `afterMediaDelete`, `beforeImageDrop`, `beforeMediaDrop`)244- Paste and clipboard events (`beforePasteCleanup`, `afterPasteCleanup`, `beforeClipboardWrite`)245- Toolbar events (`toolbarClick`, `updatedToolbarStatus`, `slashMenuItemSelect`)246- Upload events — image lifecycle (`beforeImageUpload`, `imageUploading`, `imageUploadSuccess`, `imageUploadFailed`, `imageSelected`, `imageRemoving`)247- Upload events — media lifecycle (`beforeFileUpload`, `fileUploading`, `fileUploadSuccess`, `fileUploadFailed`, `fileSelected`, `fileRemoving`)248- Document import/export events (`documentExporting`, `wordImporting`)249250---251252### Smart Editing Features253📄 **Read:** [references/smart-editing.md](references/smart-editing.md)254255**When to read:** Adding mentions, emoji, slash commands, or mail merge256257**Topics covered:**258- Mentions (`@user`) — configuration and data source259- Emoji picker — enabling and customizing260- Slash command menu — enabling `/` trigger commands261- Mail merge — inserting merge fields into content262- Combining multiple smart editing features263264---265266### AI Assistant Integration267📄 **Read:** [references/ai-assistant.md](references/ai-assistant.md)268269**When to read:** Integrating AI content generation into the editor270271**Topics covered:**272- AI AssistView integration overview273- `AIAssistantService` injection274- Configuring AI properties (endpoint, model, prompts)275- Custom AI prompt handling in Angular276- Toolbar AI button setup277- AI content generation and insertion workflow278279---280281### Clipboard and Paste Cleanup282📄 **Read:** [references/clipboard-and-paste.md](references/clipboard-and-paste.md)283284**When to read:** Controlling what happens when content is pasted into the editor285286**Topics covered:**287- `PasteCleanupService` — enabling paste cleanup288- Allowing/denying specific HTML tags and attributes289- Cleaning up Word and Excel paste formatting290- `ClipboardCleanupService` for copy/cut cleanup291- `afterPasteCleanup` event handling292- Configuring paste as plain text293294---295296### Styling and Accessibility297📄 **Read:** [references/style-and-accessibility.md](references/style-and-accessibility.md)298299**When to read:** Customizing editor appearance or ensuring accessibility compliance300301**Topics covered:**302- CSS class customization and theming303- Style encapsulation in IFrame mode304- Custom placeholder styling305- WCAG 2.1 compliance overview306- Keyboard navigation and shortcuts307- ARIA attributes and screen reader support308- Focus management309310---311312### Globalization and Localization313📄 **Read:** [references/globalization-and-i18n.md](references/globalization-and-i18n.md)314315**When to read:** Supporting multiple languages, RTL, or locale-specific formatting316317**Topics covered:**318- Localization setup with `L10n`319- RTL (Right-to-Left) support320- Custom locale string overrides321- Date and number formatting within the editor322323---324325### Import, Export & Spell Check326📄 **Read:** [references/import-export-spellcheck.md](references/import-export-spellcheck.md)327328**When to read:** Importing Word documents or exporting editor content, or adding spell/grammar check329330**Topics covered:**331- `ImportExportService` injection332- Importing from Word documents333- Exporting to PDF, HTML, or Word334- Spell check integration335- Grammar check integration336- Web Spell Checker plugin setup337338---339340### Validation and Security341📄 **Read:** [references/validation-and-security.md](references/validation-and-security.md)342343**When to read:** Using the editor in forms or enforcing content security344345**Topics covered:**346- Form validation with Angular Reactive forms347- Form validation with Template-driven forms348- XHTML validation349- Read-only mode350- Content sanitization351- XSS prevention strategies352353---354355### Integrations and How-To356📄 **Read:** [references/integrations-and-how-to.md](references/integrations-and-how-to.md)357358**When to read:** Integrating third-party libraries or solving common configuration scenarios359360**Topics covered:**361- CodeMirror source-code editor integration362- HighlightJS syntax highlighting for code blocks363- Embedly rich media preview integration364- Tailwind CSS preflight conflict fix365- Adding Google Fonts to font picker366- File attachments support367- RTE inside Angular Dialog component368- RTE inside Angular Tab component369- Changing default font family370- Formatting code blocks371372## Common Patterns373374### Two-Way Value Binding375```typescript376// Template377<ejs-richtexteditor [(value)]="htmlContent"></ejs-richtexteditor>378379// Component380public htmlContent: string = '<p>Initial content</p>';381```382383### One-Way Binding + Change Event384```typescript385<ejs-richtexteditor [value]="htmlContent" (change)="onChange($event)">386</ejs-richtexteditor>387388onChange(args: ChangeEventArgs): void {389 this.htmlContent = args.value;390}391```392393### Using with Reactive Forms394```typescript395import { FormControl, ReactiveFormsModule } from '@angular/forms';396397// Template398<ejs-richtexteditor formControlName="content"></ejs-richtexteditor>399400// Component401this.form = new FormGroup({402 content: new FormControl('<p></p>', Validators.required)403});404```405406### Key Services Reference407408| Service | What it enables |409|---|---|410| `ToolbarService` | Toolbar rendering and item management |411| `HtmlEditorService` | HTML editing mode |412| `MarkdownEditorService` | Markdown editing mode |413| `LinkService` | Hyperlink insertion and editing |414| `ImageService` | Image insertion and management |415| `TableService` | Table insertion and editing |416| `QuickToolbarService` | Floating context toolbars |417| `FileManagerService` | File browser dialog |418| `PasteCleanupService` | Paste content sanitization |419| `ResizeService` | Editor resizing handle |420| `ImportExportService` | Word/PDF import and export |421| `AIAssistantService` | AI assistant integration |422| `EmojiPickerService` | Emoji picker dialog |423| `SlashMenuService` | `/` slash command menu |424| `CodeBlockService` | Inline code block formatting |425| `AudioService` | Audio insertion |426| `VideoService` | Video insertion |427| `FormatPainterService` | Format painting (copy/apply styles) |428| `ClipboardCleanupService` | Copy/cut clipboard cleanup |429| `AutoFormatService` | Auto Markdown-to-HTML conversion |430431## Related Skills432- [Syncfusion Angular Components](../../SKILL.md) — Parent library skill