Skip to main content

Plone ONLYOFFICE integration plugin

Project description

Plone ONLYOFFICE integration plugin

This plugin allows users to edit office documents within Plone using ONLYOFFICE Document Server - Community or Integration Edition.

Features

The plugin allows to:

  • Create and edit text documents, spreadsheets, and presentations.
  • Share documents with other users.
  • Co-edit documents in real-time: use two co-editing modes (Fast and Strict), Track Changes, comments, and built-in chat.

Supported formats:

  • For viewing and editing: docx, xlsx, pptx.
  • For converting to OOXML formats (docx, xlsx, pptx): doc, docm, dot, dotx, epub, htm, html, odp, odt, pot, potm, potx, pps, ppsm, ppsx, ppt, pptm, rtf, xls, xlsm, xlsx, xlt, xltm, xltx.

Installing ONLYOFFICE Document Server

You will need an instance of ONLYOFFICE Document Server that is resolvable and connectable both from Plone and any end-clients. ONLYOFFICE Document Server must also be able to POST to Plone directly.

You can install free Community version of ONLYOFFICE Document Server or scalable enterprise-level Integration Edition.

To install free Community version, use Docker (recommended) or follow these instructions for Debian, Ubuntu, or derivatives.

To install Integration Edition, follow instructions here.

Community Edition vs Integration Edition comparison can be found here.

Installing Plone ONLYOFFICE integration plugin

Install plugin by adding it to your buildout.cfg:

[buildout]

...

eggs =
    onlyoffice.connector

and then running bin/buildout

To enable plugin, go to Site Setup -> Add-onsand press the Install button.

Configuring Plone ONLYOFFICE integration plugin

To configure plugin go to Site Setup. Scroll down to Add-ons Configuration section and press the ONLYOFFICE Configuration button.

How it works

The ONLYOFFICE integration follows the API documented here:

  • User navigates to a document within Plone and selects the ONLYOFFICE Edit action.
  • Plone prepares a JSON object for the Document Server with the following properties:
    • url: the URL that ONLYOFFICE Document Server uses to download the document;
    • callbackUrl: the URL that ONLYOFFICE Document Server informs about status of the document editing;
    • key: the UUID+Modified Timestamp to instruct ONLYOFFICE Document Server whether to download the document again or not;
    • title: the document Title (name).
  • Plone constructs a page from a .pt template, filling in all of those values so that the client browser can load up the editor.
  • The client browser makes a request for the javascript library from ONLYOFFICE Document Server and sends ONLYOFFICE Document Server the docEditor configuration with the above properties.
  • Then ONLYOFFICE Document Server downloads the document from Plone and the user begins editing.
  • ONLYOFFICE Document Server sends a POST request to the callback URL to inform Plone that a user is editing the document.
  • When all users and client browsers are done with editing, they close the editing window.
  • After 10 seconds of inactivity, ONLYOFFICE Document Server sends a POST to the callback URL letting Plone know that the clients have finished editing the document and closed it.
  • Plone downloads the new version of the document, replacing the old one.

Developing Plone ONLYOFFICE plugin

  • Clone repository and change directory
git clone --branch deploy git@github.com:ONLYOFFICE/onlyoffice-plone.git
cd onlyoffice-plone
  • Create a virtualenv in the package
  • Install requirements with pip
  • Run buildout
virtualenv --clear .
./bin/pip install -r requirements.txt
./bin/buildout
  • Start Plone in foreground
./bin/instance fg

Note that Plone is based on Zope server and will not run as root user. If you intend to run it as root user. You must supply effective-user directive. In order to do so add effective-user <username> line to ./parts/instance/etc/zope.conf.

ONLYOFFICE Document Server editions

ONLYOFFICE offers different versions of its online document editors that can be deployed on your own servers.

ONLYOFFICE Document Server:

  • Community Edition (onlyoffice-documentserver package)
  • Integration Edition (onlyoffice-documentserver-ie package)

The table below will help you make the right choice.

Pricing and licensing Community Edition Integration Edition
Get it now Start Free Trial
Cost FREE Go to the pricing page
Simultaneous connections up to 20 maximum As in chosen pricing plan
Number of users up to 20 recommended As in chosen pricing plan
License GNU AGPL v.3 Proprietary
Support Community Edition Integration Edition
Documentation Help Center Help Center
Standard support GitHub or paid One year support included
Premium support Buy Now Buy Now
Services Community Edition Integration Edition
Conversion Service + +
Document Builder Service + +
Interface Community Edition Integration Edition
Tabbed interface + +
White Label - -
Integrated test example (node.js) - +
Plugins & Macros Community Edition Integration Edition
Plugins + +
Macros + +
Collaborative capabilities Community Edition Integration Edition
Two co-editing modes + +
Comments + +
Built-in chat + +
Review and tracking changes + +
Display modes of tracking changes + +
Version history + +
Document Editor features Community Edition Integration Edition
Font and paragraph formatting + +
Object insertion + +
Content control + +
Layout tools + +
Table of contents + +
Navigation panel + +
Mail Merge + +
Spreadsheet Editor features Community Edition Integration Edition
Font and paragraph formatting + +
Object insertion + +
Functions, formulas, equations + +
Table templates + +
Pivot tables +* +*
Presentation Editor features Community Edition Integration Edition
Font and paragraph formatting + +
Object insertion + +
Animations + +
Presenter mode + +
Notes + +
Get it now Start Free Trial

*Changing style and deleting (Full support coming soon)

Authors

Change Log

1.0.0

Added

  • Edit option for DOCX, XLSX, PPTX.
  • View template for documents
  • Configuration page

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onlyoffice.connector-0.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onlyoffice.connector-0.0.1-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file onlyoffice.connector-0.0.1.tar.gz.

File metadata

  • Download URL: onlyoffice.connector-0.0.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for onlyoffice.connector-0.0.1.tar.gz
Algorithm Hash digest
SHA256 df6c1a21381fd1c5acbb233e61382787f01295d9af40f643e5507fcdcfc7aa05
MD5 ae50b21d08574fae7865db08fea04c1e
BLAKE2b-256 944d1c582c8de9a24e35b74c570c5dfa0226805b323ce571dfc08c33643f6740

See more details on using hashes here.

File details

Details for the file onlyoffice.connector-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: onlyoffice.connector-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for onlyoffice.connector-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 308cc32f2cfea6a3ca146c21773c4b971326ba64de86f1b5f09fe166632dc343
MD5 19288c88d959cc1a260331ba9bd6d517
BLAKE2b-256 aa9d8afd15acffc458d7673d6e27fd4ed3e263fe4297e6b2957a2d18a3e1d9a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page