ONLYOFFICE Document Server is a free open source office suite that is distributed under GNU AGPL v3.0. It consists of a web-based collaborative editor 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 solutions you made yourself. The editor can also be used in conjunction with the ONLYOFFICE (Community Server) collaboration platform.
The Nuxeo Platform is an open source Enterprise Content Management platform written in Java.
In this tutorial, we will learn how to integrate the ONLYOFFICE online editor with the Nuxeo Platform to edit and collaborate on documents stored there without leaving the application.
To work with documents in Nuxeo, you need an instance of the ONLYOFFICE Document Server. If you are new to ONLYOFFICE, get the latest version from the editor from GitHub.
Install the ONLYOFFICE integration plugin for Nuxeo
Run the nuxeoctl script:
nuxeoctl mp-install /path/to/onlyoffice-nuxeo-package-x.x.zip
You can also install the integration application from the official Nuxeo Marketplace.
When finished, make the ONLYOFFICE container accessible to the Nuxeo instance: configure the container network settings or use the public URL / local name of your machine. If you choose the latter option, update the nuxeo.url parameter in the nuxeo.conf file.
Alternative installation options: Compile integration plugins
To build plugins, you need a stable version of Java. If you don’t have it on your machine, run the following command 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 plugin:
git clone https://github.com/onlyoffice/onlyoffice-nuxeo.git
Compile the ONLYOFFICE integration plugin for Nuxeo:
cd onlyoffice-nuxeo/ mvn clean install
Buildings will be available at:
Configure the integration plugin
Open the nuxeo.conf file.
Specify the server URL with the ONLYOFFICE Document Server installed:
Specify JWT keys:
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 on the document menu:
With the ONLYOFFICE online editor connected to Nuxeo, you can:
- create and edit .docx, .xlsx and .pptx files;
- see .pdf, .odt, .ods, .odp, .doc, .xls, .ppt, .csv, .rtf files;
- share documents with other platform users;
- collaborate on documents in real time using two shared editing modes (real-time and paragraph locking), change tracking, comments, default chat.