Rich Text
HTML-rich content: nested headings, bold, lists, blockquotes, code, inline links.
Type: "richText". Use for longer structured content — like a blog post block.
Props
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
body | string (HTML, max 200000) | ✓ | "Tulis konten di sini..." | Raw HTML from TipTap editor |
Simple example
{
"id": "rt001abcd",
"type": "richText",
"props": {
"body": "<h2>Why Alusio?</h2><p>Because it's <strong>simple</strong> and <em>fast</em>.</p><ul><li>Drag-drop builder</li><li>Custom domain</li><li>Built-in payment</li></ul>"
}
}
Blockquote + inline link
{
"id": "rt002efgh",
"type": "richText",
"props": {
"body": "<blockquote>\"Alusio changed how we sell online.\"</blockquote><p>— Sarah, founder of <a href=\"https://tokomereka.com\">Toko Mereka</a></p>"
}
}
Tips
- Body is raw HTML from TipTap. Common tags:
p, h1-h6, strong, em, u, s, a, ul, ol, li, blockquote, code, pre, br - For a single simple paragraph → use Basic Text
- For a standalone heading → use Heading
- Avoid inline
style="..."in body — use the element-levelstylefield