Quick Start
Core Parameters
DOM selector or element where SuperDoc will mount
Document to load
Use
documents
array for multiple documents insteadBlob objects are not supported. You must convert Blobs to File objects first.
Multiple documents to load (alternative to single
document
)Unique identifier for this SuperDoc instance
Auto-generated UUID if not provided
User & Permissions
Current user information
All users with document access. Used for @mentions and collaboration.
User permission level
Role overrides documentMode when more restrictive
Initial document mode
Modules
Configure optional modules
Collaboration Module
Real-time collaboration settings
Comments Module
Comments system configuration
Toolbar Module
Toolbar configuration
Appearance
Document title for exports and display
Colors for user awareness and highlighting
Built-in palette provided by default
Enable page-based layout
Show document rulers
DOM element for toolbar
Alternative to
modules.toolbar.selector
Advanced Options
Additional SuperDoc extensions
Learn how to create your own extensions here.
Custom image upload handler
Telemetry configuration
Prevent default DOCX styles from being applied
Disable custom context menus
Content Security Policy nonce
Event Handlers
All handlers are optional functions in the configuration:Called when SuperDoc is ready
Called when editor is created
Called on content changes