DocSpace plugin samples
The following examples will show you how to create and use ONLYOFFICE DocSpace plugins to add specific features to the portal.
Basic samples
API plugin
This guide walks you through creating a DocSpace plugin that uses platform API connection parameters (origin, proxy, and prefix) to make authorized requests, such as creating rooms via the REST API.
Box component
This guide demonstrates how to configure and use the Box component in the DocSpace Plugins SDK with common layout, alignment, and spacing properties.
Button component
This guide demonstrates how to render and configure the Button component using the DocSpace Plugins SDK.
ComboBox component
This guide demonstrates how to configure and use the ComboBox component in the DocSpace Plugins SDK with nearly all supported layout and style properties.
Context menu plugin
This guide walks you through creating a basic plugin for DocSpace that adds an item to the file context menu and logs an action when clicked.
File plugin
This guide walks you through creating a plugin for DocSpace that adds support for a specific file extension, custom icons, and an action when such files are clicked.
Main button plugin
This guide walks you through creating a basic plugin for DocSpace that adds a button to the main toolbar and logs an action when clicked.
Profile menu plugin
This guide walks you through creating a plugin for DocSpace that adds a custom item to the user profile dropdown menu and performs an action when clicked.
Settings plugin
This guide walks you through creating a plugin for DocSpace that adds a plugin configuration panel to the plugin settings area in the admin interface.
Text component
This guide demonstrates how to configure and use the Text component in the DocSpace Plugins SDK with nearly all supported layout and style properties.
ToggleButton component
This guide demonstrates how to configure and use the ToggleButton component in the DocSpace Plugins SDK with nearly all supported layout and style properties.
Advanced samples
File extension filter plugin
This guide shows how to build a DocSpace plugin that adds a context menu action to rooms, opens a modal with a file extension filter, and displays a list of matching files using UI components.
Modal dialog plugin
This guide walks you through building a plugin for DocSpace that adds a custom toolbar button. When clicked, it opens a dialog allowing users to input a filename and create an empty .docx file in the current room using a backend API call.
Settings plugin UI
This plugin adds a settings interface for administrators in DocSpace. It includes:
Ready-to-use samples
Draw.io
A tool for creating diagrams, flowcharts, intelligence maps, business layouts, entity relationships, program blocks, and more.
Markdown
A tool for viewing, editing and creating .md files.
PDF converter
A tool for converting documents, spreadsheets, presentations, and forms to PDF.
Speech to text
A speech recognition software that allows you to recognize and translate spoken speech into text.