Skip to main content

Documentation Index

Fetch the complete documentation index at: https://superdoc-nick-sd-2070-add-content-controls-namespace-to-doc.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Extensions are the building blocks of SuperDoc. Every feature—from bold text to track changes—comes from an extension.

Understanding extensions

Extensions provide:
  • Commands - Actions like toggleBold() or insertTable()
  • Schema - Define what can exist in documents
  • Behavior - Keyboard shortcuts, input rules, events

Using extensions

You don’t typically configure extensions directly. SuperDoc handles it:
// These commands come from extensions
editor.commands.toggleBold();        // Bold extension
editor.commands.insertTable();       // Table extension
editor.commands.acceptAllTrackedChanges();  // TrackChanges extension

Extension categories

Core editing

Basic document capabilities:

Advanced features

Complex functionality:

Custom extensions

Build your own →

How extensions work

  1. Registration - Extensions load with the editor
  2. Schema definition - Define nodes/marks
  3. Command registration - Add to editor.commands
  4. Event handling - React to changes