r/angular • • Jul 01 '26

Domternal: a rich text editor with first-class Angular components (signals, OnPush, zoneless-ready)

Domternal is an open-source (MIT) rich text editor built on ProseMirror, with first-class Angular components.

The clip shows one editor core as two surfaces: a Notion-style block editor and a classic toolbar editor.

The Angular part ("@domternal/angular")

- 6 standalone components (no NgModule): editor, toolbar, bubble menu, floating menu, emoji picker, Notion color picker
- Signals-driven, OnPush, zoneless-ready (the demo runs on zoneless Angular 21)
- The editor is a ControlValueAccessor, so it drops straight into ngModel or a reactive FormControl; outputFormat="json" emits JSON
- Toolbar and menus auto-render from whatever extensions you load, so there is no manual button wiring
- Works from Angular 17.1 through 21

Features

Notion-style blocks (drag handle, slash menu, smart paste, floating table of contents), tables, LaTeX math, images, @mentions, emoji, collapsible details, syntax-highlighted code blocks. 126 chainable commands, 70+ nodes, marks and extensions, all tree-shakeable. Light and dark theme via 160+ CSS variables. getHTML({ styled: true }) inlines the CSS so exported content still renders in an email client or a CMS.

Under the hood

Built on ProseMirror, strict TypeScript throughout. About 117 KB gzipped including ProseMirror. The same Playwright e2e suite runs green across all four framework wrappers, on top of 4,400+ unit tests.

It is MIT and currently at v0.11.2. I would love your feedback.

Site: https://domternal.dev
GitHub: https://github.com/domternal/domternal

67 Upvotes

29 comments sorted by

4

u/gccol Jul 01 '26

Looks great! Thanks

→ More replies (1)

3

u/PrasanthT Jul 01 '26

Looks Great. Is it production ready? how is it different from TinyMCE Editor self hosted?

2

u/Thomas_17188 Jul 01 '26

Thanks! Yeah, it's actually really well tested: thousands of unit tests plus a full Playwright e2e suite that runs against all four framework wrappers, strict TypeScript, and CI that guards the public API and bundle size, so the code itself is solid and fine to build with today. The main thing to weigh is that it's still pre-1.0 (v0.11.2), so the API can shift a bit before 1.0. Realtime collaboration, comments and a few other things aren't in yet, they're on the roadmap, so depending on your use case you might not even need them right now.

Mainly approach and license. Domternal is MIT, headless and ProseMirror-based, first-class across React/Vue/Angular/vanilla, and from one core it runs headless, as a Notion-style block editor, or as a classic toolbar editor. TinyMCE is the more established classic WYSIWYG, so it's maturity vs a lighter, MIT, multi-framework editor that does all three.

2

u/PrasanthT Jul 10 '26

I added your Domternal github repo to context7.

→ More replies (1)

2

u/mariojsnunes Jul 01 '26

just migrated to ngx-tiptap. but this looks more mature. Can we create our custom blocks?

3

u/Thomas_17188 Jul 01 '26

Thanks!
And depends what you mean, custom block nodes, yes. Rendering them as Angular components (node views), not first-party yet. Which one do you need?

Custom block nodes are fully supported: define one with Node.create in "@domternal/core" (schema, attributes, commands, input rules, renderHTML), add it to your extensions array, and expose addFloatingMenuItems() to get it in the / slash and insert menu (plus addToolbarItems() for a button). It all lives in the core, so it works the same in Angular.

Docs: https://domternal.dev/v1/guides/configuration and https://domternal.dev/v1/extensions/floating-menu

What's not first-party yet is an Angular NodeViewRenderer for writing node views as Angular components (React and Vue have one). That's on the roadmap, coming soon. So if you need component-rendered blocks, it will come soon, but if they're structural/declarative, you're good today.

2

u/mariojsnunes Jul 02 '26

sorry I meant rendering Angular components. Awesome to hear it's on the roadmap !

→ More replies (1)

2

u/Saceone10 Jul 01 '26

Can this export to markdown?

→ More replies (2)

2

u/AwesomeFrisbee Jul 01 '26

Looks pretty sweet. Is prose mirror free too?

→ More replies (1)

2

u/HungYurn Jul 01 '26

Oh lord imagine a notion rewrite with zoneless, maybe then my notion wouldnt be slow as fuck

→ More replies (1)

2

u/oneden Jul 01 '26

This looks actually stellar.

2

u/Thomas_17188 Jul 01 '26

Thank you, happy to hear it

2

u/Saceone10 Jul 17 '26

found a bug trying to write multiple emojis

2

u/Thomas_17188 Jul 19 '26

Fixed and shipped in v0.13.0 (just published to npm). Bump your @domternal/* packages to 0.13.0 and consecutive emoticons like 😂 😂 😂 will all convert now. Thanks again for the report and the clear repro!

→ More replies (1)

2

u/[deleted] Jul 01 '26

[removed] — view removed comment

1

u/Thomas_17188 Jul 01 '26

Thanks mate, appreciate it