Skip to main content

Overview

The Steps plugin allows you to create numbered, step-by-step instructions. It’s perfect for tutorials, guides, and any content that requires a sequential flow.

Installation

Basic Usage

Pass the plugin to createYooptaEditor; do not pass plugins to <YooptaEditor>.

Features

  • Automatic Numbering: Steps are numbered automatically
  • Nested Content: Each step has a heading and content area
  • Keyboard Shortcuts: Type steps to insert
  • Easy Navigation: Add and remove steps easily
  • Customizable: Full control over styling

Structure

The Steps plugin consists of nested elements:

Configuration

Options

object
string[]
default:"['steps']"
Keyboard shortcuts to trigger the plugin

Commands

buildStepsElements

Creates the initial steps structure.
number
default:"2"
Number of steps to create initially

addStep

Add a new step after the current one.

deleteStep

Remove a specific step.

Keyboard Behavior

  • Enter on Heading: Creates a new step
  • Enter in Content: Inserts newline within content
  • Backspace on Heading: Deletes the step (when empty)
  • Backspace in Content: Prevents deletion at content start

Initial Structure

When created, the plugin initializes with 2 steps:

Custom Rendering

With Custom Numbering

Styling Examples

Basic CSS

With Progress Line

Use Cases

Tutorials

Step-by-step coding or software tutorials

Recipes

Cooking instructions with numbered steps

Installation Guides

Software installation procedures

DIY Instructions

Assembly or craft project steps

Best Practices

Use concise, action-oriented headings (e.g., “Install dependencies”)
Provide sufficient detail in content area for each step
Ensure steps follow a logical, sequential order
Include expected outcomes or tips within steps
Combine with Code plugin for technical steps

Advanced Patterns

With Conditional Steps

With Completion Tracking