Schemas
Rich Text
Stores structured formatted text as a Tiptap JSON document. Supports headings, bold, italic, lists, links, and code blocks.
Stores structured formatted text as a Tiptap JSON document. Use it for article bodies, long descriptions, and any content where editors need formatting controls. For plain unformatted text use Text Area; for Markdown syntax use Markdown.
Value shape
{
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{ "type": "text", "text": "Hello ", "marks": [{ "type": "bold" }] },
{ "type": "text", "text": "world." }
]
}
]
}Render the value in your frontend using the SDK helpers:
renderRichTextToReact(value)—@localess/reactllRtToHtmlpipe —@localess/angular
Options
| Option | Description |
|---|---|
| Min Length | Minimum number of characters required |
| Max Length | Maximum number of characters allowed |
| Name | Unique field name in the Schema. Appears in the generated model and in the API response. |
| Display Name | Label shown to editors in the Content Editor. |
| Required | When set, editors cannot save the document without a value. |
| Translatable | When set, the field stores a separate value per locale. |
| Description | Help text shown to editors under the field. |
| Default Value | Value applied when a document is first created. |