- Developer home
- Embed editors
- Connectors
Connectors
This page is not yet translated into your language; it is shown in English.
Connectors
Ready-made integrations open the files a team already keeps in its platform in MR Office: people edit them in the browser, together, and every save becomes a new version on the platform. File-sharing platforms that speak WOPI need only their own settings; the other platforms get a plugin, signed and verified on their own server with your app's keys.
Every connector works through one of your embed apps: its sessions, documents and saves count toward the app's plan, and its keys stay on the platform's server. Use one app per site: the app's callback URL is where that site receives its saves.
Ready-made connectors
| Platform | What to install | How it connects | Tested end to end |
|---|---|---|---|
| Nextcloud | Nextcloud Office (richdocuments) | WOPI: Nextcloud's own office app points at MR Office | Word, Excel, PowerPoint and PDF; each save is a Nextcloud version |
| ownCloud | richdocuments · wopi | WOPI: ownCloud's Collabora or WOPI app points at MR Office | Word, Excel, PowerPoint (both apps) and PDF (Collabora app); each save is an ownCloud version |
| Seafile | seahub_settings.py | WOPI: Seafile's office integration points at MR Office | Word, Excel and PowerPoint; each save is in the file's history (Seafile shows PDFs in its own viewer) |
| WordPress | mroffice-wordpress-1.0.0.zip | Plugin: Media Library files open in MR Office | Word, Excel, PowerPoint and PDF; read-only for people who may only read |
| Drupal | mroffice-drupal-1.0.0.tar.gz | Module: media items and file fields open in MR Office | Word, Excel, PowerPoint and PDF as media items; each save is a new media revision |
| Moodle | local_mroffice · mod_mroffice · assignsubmission_mroffice | Plugins: an activity, an assignment submission type, and File resources | Word, Excel, PowerPoint and PDF in the activity, an assignment submission and a File resource; read-only for students |
| Odoo | mroffice-odoo-18.0.1.0.0.zip | Module: chatter attachments of any record open in MR Office | Word, Excel, PowerPoint and PDF; read-only for people who may only read the record |
| Confluence, Jira | Forge · manifest.yml | Forge app: page and issue attachments open in MR Office | Built and unit-tested; it runs on your Atlassian site once deployed |
| SharePoint Online | SPFx · Azure Functions | SPFx command set in document libraries and a backend of your own; saves through Microsoft Graph | Built with contract tests; runs once deployed to your Microsoft 365 tenant |
| Strapi | strapi-plugin-mroffice 1.0.0 | Plugin: Media Library files open in MR Office from the admin panel | Word, Excel, PowerPoint and PDF: each save is written into the same media file, the replaced bytes kept as a history file; read-only for admins who may only read the Media Library |
| Alfresco | onlyoffice-integration-repo · share 8.4.0 | ONLYOFFICE's own connector, its Document Server address pointed at MR Office | Word, Excel, PowerPoint and PDF from Share: each save is a new version of the document |
| Liferay | liferay-docs 3.1.0 | ONLYOFFICE's own connector, its Document Server address pointed at MR Office | Word, Excel, PowerPoint and PDF from Documents and Media: each save is a new version; its own conversion works too |
| Redmine | onlyoffice_redmine 3.1.0 | ONLYOFFICE's own connector, its Document Server address pointed at MR Office | Word, Excel and PowerPoint: each save replaces the attachment; PDFs open as forms; read-only for reporters |
| Plone | onlyoffice.plone 4.1.0 | ONLYOFFICE's own connector, its Document Server address pointed at MR Office | Word, Excel, PowerPoint and PDF: each save is written into the File; read-only for readers |
| Mattermost | com.onlyoffice.mattermost 3.0.0 | ONLYOFFICE's own connector, its Document Server address pointed at MR Office | Word, Excel, PowerPoint and PDF: each save replaces the file and the bot posts who updated it; read-only for other members |
| SuiteCRM | onlyoffice.zip 1.0.0 | ONLYOFFICE's own connector, its Document Server address pointed at MR Office | Word, Excel and PowerPoint in Documents: each save replaces the revision's file; PDFs open read-only |
| HumHub | onlyoffice 4.0.0 | ONLYOFFICE's own connector, its Document Server address pointed at MR Office | Word, Excel, PowerPoint and PDF attached to posts: each save replaces the file |
| Chamilo | onlyoffice 1.6.0 | ONLYOFFICE's own connector, its Document Server address pointed at MR Office | Word, Excel, PowerPoint and PDF in course documents: each save replaces the document |
WOPI hosts
Create an app in the developer console and list the host's WOPI address under WOPI hosts (the address each guide names). The host then reads MR Office's discovery, frames the editor and saves with PutFile under a lock, as described in Use MR Office as a WOPI app.
Nextcloud
- Install Nextcloud Office (richdocuments), choose Use your own server and enter https://mroffice.ai/api/v1/wopi/<app id> as the server URL. occ richdocuments:activate-config checks that discovery and capabilities answer.
- List https://<your Nextcloud>/index.php/apps/richdocuments/wopi/files as the app's WOPI host (without index.php when Nextcloud has pretty URLs).
- Word, Excel and PowerPoint files open in MR Office when clicked. PDFs open in Nextcloud's own viewer by default: choose Open with Nextcloud Office in the file's menu.
- Close, Versions and Share in the editor's header use Nextcloud's own panels. Leave the Allow list for WOPI requests empty, or add the addresses MR Office's servers connect from.
occ app:install richdocuments
occ config:app:set richdocuments wopi_url --value="https://mroffice.ai/api/v1/wopi/<app id>"
occ richdocuments:activate-configownCloud
- Community edition: install the Collabora app (richdocuments) from the marketplace and set its WOPI URL to https://mroffice.ai/api/v1/wopi/<app id>; list https://<your ownCloud>/apps/richdocuments/wopi/files as the WOPI host. Word, Excel, PowerPoint and PDF files open in MR Office.
- Enterprise edition: ownCloud's WOPI app (Microsoft Office Online) works as well: set wopi.office-online.server to the same URL and wopi.token.key to a random string in config.php, and list https://<your ownCloud>/apps/wopi/files. That app offers Word, Excel and PowerPoint files.
- Each save is a new version of the file in ownCloud's Versions.
occ market:install richdocuments
occ config:app:set richdocuments wopi_url --value="https://mroffice.ai/api/v1/wopi/<app id>"'wopi.token.key' => '<random string>',
'wopi.office-online.server' => 'https://mroffice.ai/api/v1/wopi/<app id>',Seafile
- In seahub_settings.py, set OFFICE_SERVER_TYPE to CollaboraOffice, OFFICE_WEB_APP_BASE_URL to the app's discovery and the extensions to open and edit, then restart Seahub.
- List https://<your Seafile>/api2/wopi/files as the WOPI host. SERVICE_URL must be the address people use, because Seafile builds its WOPI addresses from it.
- Word, Excel and PowerPoint files open in MR Office from the library and every save is in the file's history. Seafile always shows PDFs in its own viewer.
OFFICE_SERVER_TYPE = 'CollaboraOffice'
ENABLE_OFFICE_WEB_APP = True
OFFICE_WEB_APP_BASE_URL = 'https://mroffice.ai/api/v1/wopi/<app id>/hosting/discovery'
WOPI_ACCESS_TOKEN_EXPIRATION = 30 * 60
OFFICE_WEB_APP_FILE_EXTENSION = ('docx', 'xlsx', 'pptx', 'doc', 'xls', 'ppt', 'odt', 'ods', 'odp')
ENABLE_OFFICE_WEB_APP_EDIT = True
OFFICE_WEB_APP_EDIT_FILE_EXTENSION = ('docx', 'xlsx', 'pptx', 'doc', 'xls', 'ppt', 'odt', 'ods', 'odp')Plugins and modules
Each plugin signs session tokens on the platform's server with the app's secret key, hands MR Office the file through a signed link that lasts 15 minutes, and verifies the signature of every save callback before it writes a new version. The packages are in the repository's apps/connectors folder; apps/connectors/build.sh builds them.
- In the developer console, create an app, add the platform's address to its allowed origins and set its callback URL to the one the plugin's settings page shows.
- In the plugin's settings, enter the app ID, the secret key and the webhook secret. MR Office address for server requests and the platform's address for MR Office are only needed when the two servers reach each other at other addresses than people do.
- People who may change the item edit it; people who may only read it open it read-only; others cannot open it. Each save is checked against its sha256 and written once, whatever the number of retries.
WordPress
- Install the plugin zip (Plugins → Add New → Upload) and open Settings → MR Office.
- Media Library: Open in MR Office in the list view, Edit in MR Office in a file's details. People who may edit the attachment edit it.
- Each save replaces the attachment's file; the file it replaces is kept in uploads/mroffice-versions (the newest 10 by default).
Drupal
- Install the module (Drupal 10.1 or 11) and open Configuration → Media → MR Office. The two secrets are kept in State, never in exported configuration.
- Grant Open files in MR Office. Media items holding an Office file get the operation Open in MR Office; file fields can use the display File with Open in MR Office.
- People who may update the media item edit it, and each save is a new revision of the media item. In a file field, the file is replaced and the previous one kept in private://mroffice-versions.
Moodle
- Install local_mroffice first (Site administration → Plugins → Local plugins → MR Office holds the settings), then mod_mroffice and assignsubmission_mroffice. Moodle 4.1 to 5.0.
- MR Office document (activity): one Office file, uploaded or started blank. Teachers edit it; students read it, or edit it together when the activity allows it.
- Assignment submissions: each student edits their own copy of a template until they submit; graders open it from the grading pages.
- File resources holding an Office file get Open in MR Office in their menu: teachers edit, students read. Each save keeps the replaced file in MR Office's history file area.
Odoo
- Copy the mroffice folder into the addons path, update the apps list and install MR Office (Odoo 18). Settings → General Settings → MR Office holds the app ID and keys.
- In the chatter of any record, Office attachments get Open in MR Office; the attachment form has the same button and lists the earlier versions.
- People who may write the record edit, people who may only read it view. Each save replaces the attachment's content, keeps the previous one and posts a note in the chatter.
Confluence, Jira
- Deploy the Forge app to your Atlassian site with the Forge CLI (forge register, forge deploy, forge install for Confluence and for Jira).
- As an administrator, open MR Office in Confluence's settings or Jira's apps: enter the app ID and keys. The page shows the callback URL and the address to add to the app's allowed origins.
- Confluence: Open attachments in MR Office in a page's menu; each save is a new version of the attachment. Jira: the MR Office issue panel; Jira has no attachment versions, so each save adds an attachment of the same name and the newest one opens next.
- People who may edit the page, or add attachments to the issue, edit; others view.
SharePoint Online
SharePoint Online offers no way to register another WOPI editor outside Microsoft's partner programme, so MR Office comes to document libraries as a SharePoint Framework extension: Open in MR Office opens the selected file in MR Office's editor over the library, and each save is written back through Microsoft Graph as the file's next version. People who may edit the item edit; people who may only read it view.
- Register an app named MR Office for SharePoint in Microsoft Entra ID: expose the scope user_impersonation, grant SharePoint AllSites.Read (delegated, to read each person's rights on their behalf) and Microsoft Graph Sites.Selected (application, write on the sites that save from MR Office), and give it a client secret.
- Deploy the backend (an Azure Functions app) with its settings: tenant, SharePoint host, the app registration, a link secret and your MR Office app's ID and keys. In the developer console, add https://<tenant>.sharepoint.com to the app's allowed origins and set its callback URL to the backend's /api/callback.
- Build the SPFx package with the backend's address and client ID, upload it to the tenant's app catalog, make it available to all sites and approve its API access request in the SharePoint admin center.
- A checked-out file opens read-only. Versions saved from MR Office show the app registration as Modified By; the editors are named in MR Office's save history. On SharePoint Server, binding MR Office's WOPI discovery with New-SPWOPIBinding is the other route.
cd apps/connectors/sharepoint/backend && npm ci && npm run core
func azure functionapp publish <function app>
cd ../spfx && npm ci && npm run build # sharepoint/solution/mroffice-sharepoint.sppkgStrapi
- Install strapi-plugin-mroffice, enable it in config/plugins.js and let the admin panel load MR Office: add MR Office's address to script-src and frame-src of strapi::security, then rebuild the admin panel.
- Settings → MR Office holds the app ID and keys and shows the callback URL to enter in the developer console; add the admin panel's origin to the app's allowed origins.
- MR Office in the menu lists the Media Library's Office files. Admins who may update media edit; those who may only read it view. Each save keeps the file's id and URL, and the bytes it replaced are kept as a history file (the newest 10).
ONLYOFFICE connectors
A platform that already has ONLYOFFICE's own connector needs no MR Office plugin: give the connector your app's ONLYOFFICE-compatible base URL as its Document Server address. Its settings check, the editor, its saves and its conversions then go to MR Office as they would to ONLYOFFICE Docs.
- In the developer console, open the app's ONLYOFFICE tab, turn compatibility on with a JWT secret and copy the Document Server URL. Add the platform's address to the app's allowed origins.
- In the connector's settings, enter that URL as the Document Server address and the same JWT secret. The JWT header must be the same name on both sides: Authorization, unless the connector uses another (Mattermost's plugin uses AuthorizationJWT).
- Leave the connector's internal addresses empty unless its server reaches MR Office at another address than people do. A connector whose address field is short takes the short Document Server URL shown below the other one.
- Saves arrive as Document Server's callbacks: status 2 when the last editor has left, status 6 for a forced save, the token both in the body and in the header. The connector stores the platform's new version as it does with ONLYOFFICE.
Document Server address: https://mroffice.ai/oo/<app id>/
JWT secret: <the app's ONLYOFFICE JWT secret>
JWT header: Authorization (the same name in the console and in the connector)- Alfresco: ONLYOFFICE's repository and Share AMPs 8.4 (Alfresco 26.1), applied with the Module Management Tool. Its settings page checks the server (health, command, a conversion) when it saves.
- Redmine: ONLYOFFICE's plugin 3.1 for Redmine 5. Its release Gemfile names no versions; pin jwt 2.7.1, mustache 1.1.1, render_parent 0.1.0 and sorbet-runtime 0.5.10969 (its own Gemfile.lock) before bundle install, or Redmine answers 500 on the plugin's settings page.
- Plone: the onlyoffice.plone add-on (Plone 6.1, Classic UI). Its control panel loads api.js in the browser, then checks the server, before it saves.
- Mattermost: ONLYOFFICE's plugin 3.0 for Mattermost 9.11 or later. The bundle is 110 MB: raise File Storage → Maximum File Size before uploading it. Turn on Allow private only when MR Office's address is a private one.
- SuiteCRM: the module installs through Admin → Module Loader. Its address field takes 50 characters: use the short Document Server URL.
- HumHub: the onlyoffice module (HumHub 1.18). Files attached to posts and in Files open from their menu.
- Chamilo: the onlyoffice plugin (Chamilo 1.11.16 or later), enabled under Administration → Plugins. Course documents get the editor's button.
- Strapi: ONLYOFFICE's plugin 2.0.1 opens files but cannot save them back (its callback looks for the media file under the wrong id), and its npm package has no build — use MR Office's own Strapi plugin above.
- Liferay: its connector 3.1 drops the address's path for its server requests. Set the Document Server address to the app's base URL (for the browser) and the address for internal requests to https://mroffice.ai/ — MR Office answers Document Server's paths at its root and finds the app by the secret that signed the request. Nuxeo's connector uses the same settings as Alfresco's; it has not been run end to end here yet (its Docker image needs a Nuxeo account).
Which connector is calling
The Usage tab of each app lists, for the last 30 days, the connectors that opened its sessions: the plugin and its version or the WOPI host product, the site it runs on, sessions, people and when it was last seen. Sessions your own code started are listed as your own code.
Your own connector
A connector of your own names itself in the token's connector claim, with its version and the site it runs on, so its sessions are listed under its name. The name is lower-case letters, digits, dots, hyphens and underscores; the claim is shown, never used to decide anything.
{
"iss": "<app id>", "aud": "mroffice-embed", "iat": 1795300000, "exp": 1795300600, "jti": "…",
"file": { "key": "intranet-7f3a-42", "name": "budget.xlsx", "url": "https://intranet.example.com/files/42?sig=…", "version": "rev-9" },
"mode": "edit",
"user": { "id": "u-17", "name": "Ana Lima" },
"connector": { "name": "intranet", "version": "2.3.0", "site": "https://intranet.example.com" }
}