npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@stackch/angular-richtext-editor

v1.2.1

Published

Lightweight Angular rich text editor (standalone) with a reusable toolbar: fonts, sizes, colors, lists, alignment, links.

Readme

Localized docs: see repository root — English, Deutsch, Français, Italiano.

@stackch/angular-richtext-editor

Lightweight Angular 20 standalone rich text editor with a reusable toolbar and built‑in i18n.

  • Range/Selection API for bold/italic/underline (minimal execCommand fallback)
  • Undo/Redo with HTML snapshots and selection restore
  • Clean HTML (removes empty spans/styles)
  • Toolbar component exported for reuse
  • i18n with English defaults and predefined DE/FR/IT bundles

Changelog (English)

  • 1.0.3 (2025-10-11)
    • Docs: Add inline changelog in README (npm page), remove link to private GitHub
  • 1.0.2 (2025-10-11)
    • Docs: Add Yarn installation examples in README (npm page)
  • 1.0.1 (2025-10-11)
    • Package metadata: English description (no code changes)
  • 1.0.0 (2025-10-11)
    • Initial public release

Installation

# npm
npm install @stackch/angular-richtext-editor

# Yarn (Berry/Classic)
yarn add @stackch/angular-richtext-editor

# Optional: pin to a specific version
npm install @stackch/[email protected]
yarn add @stackch/[email protected]

Usage

Import the standalone component and bind to a FormControl:

import { Component } from '@angular/core';
import { ReactiveFormsModule, FormControl } from '@angular/forms';
import { StackchRichtextEditor } from '@stackch/angular-richtext-editor';

@Component({
   standalone: true,
   imports: [ReactiveFormsModule, StackchRichtextEditor],
   template: `
      <stackch-richtext-editor
         [showToolbar]="true"
         [fonts]="['Arial, sans-serif', 'Georgia, serif']"
         [fontSizes]="[12, 14, 16, 20, 24]"
         [minHeight]="180"
         [maxHeight]="400"
         [formControl]="content">
      </stackch-richtext-editor>

      <pre>{{ content.value }}</pre>
   `
})
export class DemoComponent {
   content = new FormControl<string | null>('');
}

Inputs:

  • placeholder: string – placeholder text
  • showToolbar: boolean – show toolbar (default: true)
  • fonts: string[] – font family list
  • fontSizes: number[] – font sizes (px)
  • height?: number – fixed height
  • minHeight: number – min height (px)
  • maxHeight?: number – max height (px)
  • disabled: boolean – disabled state

Outputs:

  • valueChange: string – emitted HTML on changes

Note: The component implements ControlValueAccessor and works with formControl/ngModel.

i18n

English is the default. Use config.i18n for partial overrides or import predefined bundles.

import { STACKCH_RTE_I18N_DE, STACKCH_RTE_I18N_FR, STACKCH_RTE_I18N_IT } from '@stackch/angular-richtext-editor';

cfg = {
   // i18n: undefined, // English defaults
   // i18n: STACKCH_RTE_I18N_DE,
   // i18n: STACKCH_RTE_I18N_FR,
   // i18n: STACKCH_RTE_I18N_IT,
};

Customize a few strings:

cfg = { i18n: { boldTitle: 'Strong', colorsTitle: 'Palette' } };

For localized documentation (DE/FR/IT), see the repository README files.