unlayer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUnlayer
Unlayer
Overview
概述
Unlayer is a visual drag-and-drop editor for emails, web pages, popups, and documents. This skill routes to feature-specific sub-skills.
Unlayer是一款用于电子邮件、网页、弹窗和文档的可视化拖拽编辑器。本技能可引导至各功能对应的子技能。
Skill Version Check
技能版本检查
Skill installed on: !
stat -f "%Sm" -t "%Y-%m-%d" SKILL.md 2>/dev/null || stat -c "%y" SKILL.md 2>/dev/null | cut -d' ' -f1⚠️ If this skill was installed more than 30 days ago, tell the user to update it:bashnpx skills update
技能安装时间: !
stat -f "%Sm" -t "%Y-%m-%d" SKILL.md 2>/dev/null || stat -c "%y" SKILL.md 2>/dev/null | cut -d' ' -f1⚠️ 如果该技能安装已超过30天,请告知用户进行更新:bashnpx skills update
Sub-Skills
子技能
| Task | Skill | Use When |
|---|---|---|
| Framework setup | | Adding Unlayer to React, Vue, Angular, or plain JavaScript |
| Custom tools | | Building custom drag-and-drop tools, property editors, widgets |
| Exporting content | | HTML/PDF/Image export, saving designs, auto-save, Cloud API |
| Editor configuration | | Features, appearance, merge tags, security, file storage |
| 任务 | 技能 | 使用场景 |
|---|---|---|
| 框架集成配置 | | 将Unlayer添加至React、Vue、Angular或纯JavaScript项目中 |
| 自定义工具 | | 构建自定义拖拽工具、属性编辑器、小组件 |
| 内容导出 | | HTML/PDF/图片导出、设计保存、自动保存、Cloud API |
| 编辑器配置 | | 功能设置、外观定制、合并标签、安全配置、文件存储 |
Routing Examples
路由示例
| User Says | Route To |
|---|---|
| "Add Unlayer to my React/Vue/Angular app" | |
| "Create a custom drag-and-drop tool" | |
| "Export HTML" / "Save the design" / "Generate thumbnail" | |
| "Set up merge tags" / "Configure features" / "HMAC security" | |
| "Upload images to my server" / "Dark theme" / "Custom fonts" | |
| "My merge tags aren't working" / "Editor won't load" | Check |
Multiple skills needed? Common flow:
- Start with to add the editor to your app
unlayer-integration - Use to customize features, merge tags, appearance
unlayer-config - Use to save designs and export content
unlayer-export - Use if you need custom drag-and-drop blocks
unlayer-custom-tools
| 用户需求 | 引导至 |
|---|---|
| "将Unlayer添加到我的React/Vue/Angular项目中" | |
| "创建自定义拖拽工具" | |
| "导出HTML" / "保存设计" / "生成缩略图" | |
| "设置合并标签" / "配置功能" / "HMAC安全设置" | |
| "将图片上传至我的服务器" / "深色主题" / "自定义字体" | |
| "我的合并标签无法生效" / "编辑器无法加载" | 检查 |
需要使用多个技能? 常见流程:
- 先使用将编辑器添加至你的项目
unlayer-integration - 使用自定义功能、合并标签和外观
unlayer-config - 使用保存设计并导出内容
unlayer-export - 若需自定义拖拽模块,使用
unlayer-custom-tools
Common Setup
通用配置
Prerequisites
前置条件
- An Unlayer account at console.unlayer.com
- A Project ID — find it in Dashboard > Project > Settings
- A Project Secret (for HMAC security only) — find it in Dashboard > Project > Settings > API Keys
- 拥有Unlayer账号:console.unlayer.com
- 项目ID — 可在控制台 > 项目 > 设置中找到
- 项目密钥(仅用于HMAC安全配置)— 可在控制台 > 项目 > 设置 > API密钥中找到
Minimal Init
最小化初始化
javascript
unlayer.init({
id: 'editor-container', // HTML div ID where editor mounts
projectId: YOUR_PROJECT_ID, // From Dashboard > Project > Settings
displayMode: 'email', // 'email' | 'web' | 'popup' | 'document'
});javascript
unlayer.init({
id: 'editor-container', // HTML div ID where editor mounts
projectId: YOUR_PROJECT_ID, // From Dashboard > Project > Settings
displayMode: 'email', // 'email' | 'web' | 'popup' | 'document'
});Display Modes
显示模式
| Mode | Use For | HTML Output |
|---|---|---|
| Email templates | Table-based (Outlook/Gmail safe) |
| Landing pages | Div-based (modern CSS) |
| Modal overlays | Div-based with popup positioning |
| Print-ready docs | Div-based with page breaks |
| 模式 | 适用场景 | HTML输出 |
|---|---|---|
| 电子邮件模板 | 基于表格(兼容Outlook/Gmail) |
| 落地页 | 基于Div(现代CSS) |
| 模态弹窗 | 基于Div并包含弹窗定位 |
| 可打印文档 | 基于Div并包含分页符 |
Out of Scope
不涵盖范围
These skills cover the Unlayer editor SDK. For other needs:
- Billing/account issues: console.unlayer.com or support@unlayer.com
- Bug reports: support@unlayer.com
- Feature requests: support@unlayer.com
本技能仅覆盖Unlayer编辑器SDK。其他需求请参考:
- 账单/账号问题:console.unlayer.com 或 support@unlayer.com
- Bug反馈:support@unlayer.com
- 功能请求:support@unlayer.com