Understanding extensions
Extensions provide:- Commands - Actions like
toggleBold()
orinsertTable()
- 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:Extension categories
Core editing
Basic document capabilities:- Bold, Italic, Underline, Strike- Text formatting
- Strike, Heading - Document structure
- Lists, Tables - Bullet points and tables
Advanced features
Complex functionality:- Track Changes - Revision tracking
- Comments - Discussions
- Field Annotation - Form fields
- Document Section - Locked sections
- Table - Complex tables
- Search - Find and replace
Custom extensions
Build your own →How extensions work
- Registration - Extensions load with the editor
- Schema definition - Define nodes/marks
- Command registration - Add to
editor.commands
- Event handling - React to changes