This plugin enables users to edit office documents from Mattermost using ONLYOFFICE Docs.
You need an instance of ONLYOFFICE Docs (Document Server) that is resolvable and connectable both from Mattermost and any end clients. If that is not the case, use the official ONLYOFFICE Docs documentation page. ONLYOFFICE Docs must also be able to POST to Mattermost directly.
ONLYOFFICE Docs and Mattermost can be installed either on different computers, or on the same machine. If you use one machine, set up a custom port for ONLYOFFICE Docs.
The easiest way to install an instance of ONLYOFFICE Docs is to use Docker.
To start using ONLYOFFICE Docs with Mattermost, follow these steps:
Install the dependencies:
npm install --legacy-peer-depsRun the following command:
make distDocument Editing Service address. To connect ONLYOFFICE Docs, enter the following address:
https://<documentserver>:<port>/where documentserver is the name of the server and port is the port number with ONLYOFFICE Docs installed. The address must be accessible from the user browser and from the Mattermost server. The Mattermost server address must also be accessible from ONLYOFFICE Docs for correct work.
Users are able to open files sent in personal and group Mattermost chats for viewing and co-editing.
When files are sent in the chat message, the following actions are available in the file context menu by clicking the ⋮ symbol:
When clicking on the Open file in ONLYOFFICE button, the corresponding ONLYOFFICE editor opens in the same window.
The author of the message with attached documents is able to change access rights to the file via the context menu using the Change access rights option. This action is available both in personal and group chats.
ONLYOFFICE bot sends notifications about changes in the document specifying the name of the user who made those changes.
The ONLYOFFICE integration follows the API documented here.
Download the Mattermost ONLYOFFICE integration plugin here.