CDK editor blocks
The CDK editor is block-based. Each block represents a structured content type with a specific data model. You can compose modules by combining narrative blocks, media blocks, and interactive learning blocks.
This section documents the blocks that map to the interactive editor tools in Modula Connect docs.
How block editing works
- Open the editor and add a block type.
- Fill in the block fields in the form UI.
- Reorder blocks to shape the flow of your module.
- Switch to preview and validate the learner experience.
- Save your content state.
Available block docs
| Block | Use for |
|---|---|
| Text | Short articles and narrative text sections |
| Title | Module title, subtitle, and abstract |
| Deck | Flashcard decks for active recall |
| Exercise | Interactive exercises and assessments |
| Formula | Mathematical formulas in LaTeX |
| Gallery | Image galleries in grid or slideshow layout |
| Location | Maps with optional markers and overlays |
| Timeline | Chronological event sequences |
Editor API
| Page | Use for |
|---|---|
| Integration | Mounting the editor runtime and wiring required contexts |
| State and persistence | Understanding State lifecycle and JSON save format |
| Collaborative editor | Integrating realtime collaboration (presence, locks, signaling) |
| Backend | Backend requirements, database model, and API endpoints for editor workflows |
Editor block vs component rendering
A CDK block is the authoring model in the editor. At render time, each block maps to one or more visual components. This separation lets you keep authoring data structured, while preserving flexibility in output and styling.