Text editor
The Text editor lets you review and refine a short article or narrative block before it becomes a component. The AI provides a draft title and body; you can adjust the wording, cut text, or correct facts in the widget, then save.
How to invoke it
Ask the AI to create or edit a text block in natural language:
- “Add an introductory text on the causes of World War I”
- “Create a short article about the water cycle”
- “Edit the text section”
The AI will call edit_text with a pre-filled draft and open the widget.
Data fields
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | Yes | The title of the article |
body | string | Yes | The article body. Maximum 250 words. |
The text editor is intentionally concise — it is designed for summary-length content that accompanies other components, not for long-form narrative. For scroll-driven stories with multiple sections, use the Documentary or Data Story schemas instead.
Tips
- Keep it focused. 150–200 words is a good target for a content block; the 250-word limit is a hard ceiling.
- Plain prose only. The body field does not support embedded images or rich media — use a gallery or media component alongside the text if you need visual support.
- Iterate in the widget. If the AI’s draft is close but not quite right, adjust it directly rather than saving and re-requesting.