Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Text Editor

The ngs-text-editor component is a full WYSIWYG rich text editor based on Tiptap for editing formatted HTML content. Use it for long descriptions, articles, notes, changelog entries, knowledge base content, and admin fields that need headings, lists, links, images, embeds, code, and rich formatting.

Key Features:
  • Rich formatting: Supports headings, bold, italic, strike, lists, blockquotes, inline code, code blocks, and horizontal rules.
  • Media and links: Add links, upload images with imageUploadFn, and insert YouTube embeds.
  • Editor menus: Compose toolbars, bubble menus, floating menus, and command buttons around the editor.
  • HTML output: Listen to contentChange when the editor content changes.
PropTypeDefault
content
Initial HTML content rendered inside the editor
string''
extensions
Additional Tiptap extensions to register before the built-in editor extensions
any[][]
contentMaxHeight
Maximum height of the content area
number
placeholder
Placeholder text
stringWrite something …
imageUploadFn
Function to handle image uploads
(file: Blob) => Promise<string>
EventDescriptionType
contentChangeEmitted with the current HTML content whenever the editor updatesOutputEmitterRef<string>

Editor API

MethodDescriptionReturns
api.isCommandDisabled(command, options?)Returns whether a command cannot run in the current editor stateboolean | null
api.isActive(command, options?)Returns whether a mark, node, or command state is activeboolean
api.runCommand(command, options?)Runs a Tiptap chain command with focusvoid
api.editor()Returns the underlying Tiptap editor instanceEditor