Skip to main content

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​

SampleDescription
AuthorizationLog in to a DocSpace account using email and password hash.
Two-factor authenticationVerify users with a phone code before granting DocSpace access.

Room and workspace setup​

SampleDescription
Structured room creationCreate client rooms with predefined folders and document templates.
Tabbed manager UIEmbed DocSpace in a tabbed interface with multiple manager instances.
Draggable resizable modalsEmbed DocSpace in draggable and resizable modal windows.

File and folder management​

SampleDescription
Create file in selected folderCreate a file in a selected folder and open it in the editor.
Open file in ONLYOFFICE editorsSelect a file and open it in ONLYOFFICE editors via the SDK.
Customize editorsCustomize the editor interface with branded buttons, logos, and links.

Project and task management​

SampleDescription
Create basic taskCreate a task management table with auto-generated DocSpace rooms.
Create files in roomsCreate tasks linked to DocSpace rooms and add files inside them.
Room selectorLink tasks to DocSpace rooms using the room selector component.
Manage project foldersTrack projects as folders in a shared room with file locking.
File manager with task attachmentsAttach files to tasks using a DocSpace file selector modal.
Collaborative project workflowBuild a freelance project workspace with rooms and file management.

Document workflows​

SampleDescription
Approval workflowRoute a document through reviewer sign-off before it's approved.

Communication​

SampleDescription
DocSpace chat commandsInsert room and file links into a chat using slash commands.