Advanced samples
These samples show how to combine DocSpace Embed SDK calls into complete, real-world integrations. Each one builds on the basics covered in Basic samples and targets a specific use case.
Security and access
| Sample | Description |
|---|---|
| Authorization | Log in to a DocSpace account using email and password hash. |
| Two-factor authentication | Verify users with a phone code before granting DocSpace access. |
Room and workspace setup
| Sample | Description |
|---|---|
| Structured room creation | Create client rooms with predefined folders and document templates. |
| Tabbed manager UI | Embed DocSpace in a tabbed interface with multiple manager instances. |
| Draggable resizable modals | Embed DocSpace in draggable and resizable modal windows. |
File and folder management
| Sample | Description |
|---|---|
| Create file in selected folder | Create a file in a selected folder and open it in the editor. |
| Open file in ONLYOFFICE editors | Select a file and open it in ONLYOFFICE editors via the SDK. |
| Customize editors | Customize the editor interface with branded buttons, logos, and links. |
Project and task management
| Sample | Description |
|---|---|
| Create basic task | Create a task management table with auto-generated DocSpace rooms. |
| Create files in rooms | Create tasks linked to DocSpace rooms and add files inside them. |
| Room selector | Link tasks to DocSpace rooms using the room selector component. |
| Manage project folders | Track projects as folders in a shared room with file locking. |
| File manager with task attachments | Attach files to tasks using a DocSpace file selector modal. |
| Collaborative project workflow | Build a freelance project workspace with rooms and file management. |
Document workflows
| Sample | Description |
|---|---|
| Approval workflow | Route a document through reviewer sign-off before it's approved. |
Communication
| Sample | Description |
|---|---|
| DocSpace chat commands | Insert room and file links into a chat using slash commands. |