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, centre, or right
- Bulleted lists and Numbered lists
- Blockquotes
- Code blocks with syntax highlighting
- Typography - font family, font size, and text colour
- 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, centre, 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 colour live in the typography popover. The lesson editor keeps the writing surface readable while you work; use the live preview to confirm final colour styling in the learner view.
Text you have given a custom colour shows a dotted underline in the editor, so you can spot it at a glance. Hover over the underlined text to see the exact shade applied. The dotted underline is an editing aid only and does not appear in preview, published courses, or exports.
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…”