# RichTextEditor
> RichTextEditor is a commercial JavaScript WYSIWYG rich text editor with a perpetual per-domain license (from $129 one-time, free community edition available). It includes an AI Toolkit (Ask AI, AI Chat, AI Review — bring-your-own-key: OpenAI, Azure OpenAI, Anthropic, Gemini, Groq, or local Ollama), per-node Yjs CRDT real-time collaboration, track changes, threaded comments, revision history, and lossless JSON + Markdown structured content. Native bindings: React, Vue, Angular, Svelte, Blazor, ASP.NET Core, ASP.NET Web Forms, PHP. Fully self-hosted; no editor-load metering, no AI add-on fees.
Install: `npm install @richscripts/richtexteditor` · scaffold: `npm create @richscripts/richtexteditor my-app -- --react` (also --vue, --angular) · .NET: `dotnet new install RichTextEditor.Templates` then `dotnet new richtexteditor-mvc|razor|blazor`.
Basic usage (script tag or bundler):
React: `import { RichTextEditorComponent } from "@richscripts/richtexteditor/react"`. Headless (bring your own UI): `@richscripts/richtexteditor/headless`. Server-side conversion (Markdown/JSON/HTML): `@richscripts/richtexteditor/server`.
## Docs
- [Quick start](https://richtexteditor.com/docs/quick-start): install via npm or download, first editor, toolbar config
- [Configuration reference](https://richtexteditor.com/docs/configuration-reference): every RTE_DefaultConfig option
- [JavaScript API — all methods](https://richtexteditor.com/docs/jsapi_allmethods): editor instance methods
- [Toolbar items reference](https://richtexteditor.com/docs/toolbar-items-reference): every toolbar command
- [AI Toolkit](https://richtexteditor.com/docs/ai-toolkit): BYOK setup, providers, streaming, review drawer
- [Collaboration / CRDT internals](https://richtexteditor.com/docs/crdt-internals): Yjs integration architecture
- [Structured content](https://richtexteditor.com/docs/structured-content): JSON document model, Markdown round-trip
- [File uploads](https://richtexteditor.com/docs/uploadfiles): server handlers (ASP.NET, PHP, Node)
## Product
- [Live demos (63)](https://richtexteditor.com/demos)
- [Pricing — perpetual licenses](https://richtexteditor.com/pricing)
- [Compare vs TinyMCE, CKEditor, Froala, Tiptap](https://richtexteditor.com/compare)
- [Migration guides from other editors](https://richtexteditor.com/migrate)
- [npm package](https://www.npmjs.com/package/@richscripts/richtexteditor)
- [GitHub](https://github.com/richtexteditor/richtexteditor)
## Optional
- [Why perpetual licensing](https://richtexteditor.com/perpetual-license)
- [BYOK AI editing](https://richtexteditor.com/byok-ai-editor)
- [Per-tenant AI key vault for SaaS](https://richtexteditor.com/byok)
- [End-user guide](https://richtexteditor.com/userguide)
- [Release notes](https://richtexteditor.com/release-notes)