Collaborative Editing
Configuration
Learn how to configure the Collaborative Editing feature in your Directus project.
This guide covers the configuration settings for the Collaborative Editing feature.
Configuration
Enabled by Default
Collaborative Editing is automatically enabled when WebSockets are active. For detailed configuration options and environment variables, please refer to the Collaborative Editing Configuration documentation.
Verification
To verify that collaborative editing is working correctly:
- Verify WebSockets: Ensure your Directus instance has WebSockets enabled (
WEBSOCKETS_ENABLED=true). - Verify Project Settings: Ensure your Directus instance has Collaborative Editing enabled in Project Settings.
- Test Collaboration: Open any collection item and look for the collaboration indicators (avatar stack in the header).
- Multi-User Test: Have another user open the same item and you should see their avatar appear.
Troubleshooting
WebSocket Connection Failed
- Confirm
WEBSOCKETS_ENABLED=trueis set. - Check that your server/proxy supports WebSocket connections.
- Verify firewall settings allow WebSocket traffic.
Redis Issues (Multi-Instance)
- Ensure all instances are connected to the same Redis server.
- Verify the
WEBSOCKETS_COLLAB_STORE_NAMESPACEif sharing a Redis instance with other applications (default iscollab).
Debug Logging
Enable debug logging to troubleshoot issues.
LOG_LEVEL="debug"
This will provide detailed information about WebSocket connections, user events, and collaboration activities in your Directus logs.
Get once-a-month release notes & real‑world code tips...no fluff. 🐰
Collaborative Editing
Directus Collaborative Editing enables real-time data synchronization and collaborative editing across collections, allowing multiple users to edit content simultaneously without conflicts.
Usage Guide
Learn how to use the Collaborative Editing feature for real-time collaboration on content in your Directus project.