@standhigher/react-email-editor
v0.12.0
Published
React email template editor with drag-and-drop blocks, rich text, JSON storage, and HTML export.
Readme
@standhigher/react-email-editor
English | 简体中文
把内容拖进画布,调整邮件外观,预览后保存为可继续编辑的 JSON 或导出邮件 HTML。
模块架构图

安装与最小接入
需要 React 18 和 React DOM 18;包提供 ESM 和 TypeScript 类型。
npm install @standhigher/react-email-editorimport { EmailEditor, useEmailEditor } from "@standhigher/react-email-editor";
import "@standhigher/react-email-editor/styles.css";
export function EmailPage() {
const editor = useEmailEditor();
return <EmailEditor editor={editor} height={720} />;
}本地启动
推荐 Node.js 24 LTS(.nvmrc;完整测试最低需要 22.18):
npm install
npm run dev打开 http://localhost:5173,已有服务时优先复用。构建与校验命令见 API 文档的开发说明。
