Home / How To / How to integrate ONLYOFFICE editors with the Nuxeo platform

How to integrate ONLYOFFICE editors with the Nuxeo platform

ONLYOFFICE Document Server is a free open source suite distributed under GNU AGPL v3.0. It includes web-based collaborative editors for text documents, spreadsheets and presentations for integration with several cloud storage services such as Nextcloud, ownCloud, Seafile, Alfresco, Plone, etc. or for integration into the solution you build yourself. The editors can also be used with the ONLYOFFICE collaboration platform (Community Server).

Nuxeo Platform is an open source Enterprise Content Management platform written in Java.

In this tutorial, we will learn how to integrate ONLYOFFICE online editors with Nuxeo Platform to edit and collaborate on documents stored there without having to leave the application.
To work with documents within Nuxeo, you need an instance of ONLYOFFICE Document Server. If you are new to ONLYOFFICE, get the latest version of the editors from GitHub.

Install the ONLYOFFICE integration plugin for Nuxeo

Run it nuxeoctl script:

nuxeoctl mp-install /path/to/onlyoffice-nuxeo-package-x.x.zip

You can also install the integration app from the official Nuxeo Marketplace.

When done, make the ONLYOFFICE container available to the Nuxeo instance: configure the container network settings or use the public URL / local name of your machine. If you select the latter option, update nuxeo.url parameter i nuxeo.conf file.

Alternative installation options: Compile integration plugin

To build the plugin you need the stable Java version. If you do not have it on your machine, run the following commands to install Open JDK 8:

sudo apt-get update
sudo apt-get install openjdk-8-jdk

Install the latest version of Maven:

sudo apt-get install maven

Download the source code for the plugin:

git clone https://github.com/onlyoffice/onlyoffice-nuxeo.git

Compile the ONLYOFFICE integration plugin for Nuxeo:

cd onlyoffice-nuxeo/
mvn clean install

The building will be available at:


Configure the integration plugin

Open nuxeo.conf file.

Enter the server URL with ONLYOFFICE document server installed:


Enter the JWT key:


The same JWT key must be specified in the ONLYOFFICE configuration file.

Edit documents with ONLYOFFICE in Nuxeo

Log in to your Nuxeo platform. Go to Browse -> Domain -> Workspaces -> ONLYOFFICE-Nuxeo to create a new document, spreadsheet or presentation.

You can also access the editor interface by clicking the ONLYOFFICE icon in the document menu:

Activate Nuexo in ONLYOFFICE

With ONLYOFFICE online editors connected to Nuxeo, you can:

  • create and edit .docx, .xlsx and .pptx files;
  • view .pdf, .odt, .ods, .odp, .doc, .xls, .ppt, .csv, .rtf files;
  • share documents with other users of the platform;
  • collaborate on documents in real time using two co-editing modes (real-time and cutting locks), change tracking, comments, built-in chat.


Source link