<base-rich-text-editor> is a lightweight WYSIWYG editor with a themed toolbar and a contenteditable body. It integrates with Angular Forms and emits HTML.
Unlock it plus 90 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.
Bind HTML with [(ngModel)] or a reactive form control. The toolbar covers bold / italic / underline / strike, headings, lists, alignment, links, undo / redo, and clear formatting.
Welcome to the Base UI rich text editor. Try italic, underline, lists, and links.
HTML value
<p>Welcome to the <strong>Base UI</strong> rich text editor. Try <em>italic</em>, <u>underline</u>, lists, and links.</p>
Run the following command to add this component to your project:
npx base-ui-cli add rich-text-editor
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.
npx -y base-ui-mcp
Base UI provides standalone components. Import the exact elements you want to use into your component.
// Install: npx base-ui-cli add rich-text-editor
// Paths are relative to aliases.components (default: src/app/components)
import { RichTextEditorComponent } from './rich-text-editor/rich-text-editor.component';
@Component({
selector: 'app-your-component',
imports: [
RichTextEditorComponent
],
template: `...`
})
export class YourComponent {} API for rich-text-editor — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
base-rich-text-editor | class | string | '' | Extra host classes merged via `cn()`. |
base-rich-text-editor | placeholder | unknown | 'Write something...' | Placeholder shown when the editor is empty. |
base-rich-text-editor | minHeight | number | 180 | Minimum height of the editable area in pixels. |
base-rich-text-editor | ariaLabel | unknown | 'Rich text editor' | Accessible label for the editable region. |
On this page