Prerequisites
The editor requires React 18+ and a bundler that supports package exports (Vite, Next.js, Webpack 5, etc.).
Install
Install the editor and its peer dependencies:Quick start
The recommended way to start is with the standaloneEmailEditor component. It
gives you a working editor with the default bubble menus, slash commands,
theming, and export helpers already wired up:
Content format
The editor accepts content in two formats: HTML string — Parsed automatically into the editor’s document model:Lower-level setup
If you need more control, drop down to Tiptap’sEditorProvider and compose the
editor yourself. This is the lower-level path: you choose the extensions, add
UI overlays manually, and import any CSS you need.
Common building blocks on this path are StarterKit,
BubbleMenu,
SlashCommand,
EmailTheming,
composeReactEmail, and the
useEditor hook.
The simplest manual setup uses StarterKit with EditorProvider and no UI
overlays:
Import CSS
When you use the lower-level UI components directly, import the bundled theme:Adding a bubble menu
To add a floating formatting toolbar that appears when you select text, addBubbleMenu
as a child of EditorProvider:
Examples
See these features in action with runnable examples:Standalone Editor — Minimal
The simplest possible editor setup.
Basic Editor
EditorProvider with StarterKit and no overlays.
Standalone Editor — Full Features
Theme toggle, HTML export, and JSON output.
Standalone Editor — Inspector
Add an inspector sidebar with zero manual setup.
All Examples
Browse the complete set of interactive examples.
Next steps
Bubble Menu
Add floating formatting toolbars on text selection.
Slash Commands
Insert content blocks with a command menu.
Email Theming
Apply visual themes to your email output.
Email Export
Convert editor content to email-ready HTML.