Text Block
The Text block is the most common block type in Slate. Use it to add formatted text, headings, lists, and links to your lessons.
Formatting options
Section titled “Formatting options”The text editor toolbar provides the following formatting:
- Undo and Redo
- Headings (H3-H6)
- Bold and Italic
- Strikethrough
- Text alignment - left, center, or right
- Bulleted lists and Numbered lists
- Blockquotes
- Code blocks with syntax highlighting
- Typography - font family, font size, and text color
- Links (Cmd+K / Ctrl+K)
- AI Writing Assistant - expand, shorten, make more fun, or make more formal
Headings
Section titled “Headings”Text blocks support heading levels H3 through H6. Heading levels H1 and H2 are reserved for the course title and lesson title respectively, so content headings start at H3.
Text alignment
Section titled “Text alignment”Use the alignment control in the toolbar to align selected paragraphs left, center, or right. Alignment is saved with the text and carries through preview, published courses, and exports.
Typography
Section titled “Typography”Font family, font size, and text color live in the typography popover. The lesson editor keeps the writing surface readable while you work; use the live preview to confirm final color styling in the learner view.
AI Writing Assistant
Section titled “AI Writing Assistant”When a text block has content, open the Slate AI button in the toolbar to transform the current text. Available actions are Expand, Shorten, More Fun, and More Formal.
Select text and press Cmd+K (Mac) or Ctrl+K (Windows) to add a link. You can link to any external URL.
Default content
Section titled “Default content”When you add a new Text block, it starts with placeholder text: “Enter your text here…”