You need an instance of ONLYOFFICE Docs (Document Server) that is resolvable and connectable both from WordPress 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 WordPress directly.
The easiest way to install an instance of ONLYOFFICE Docs is to use Docker.
To start using ONLYOFFICE Docs with WordPress, follow these steps:
Alternatively, you can clone the master branch (and then activate the plugin from the WordPress administrative dashboard as well):
cd wp-content/plugins git clone https://github.com/ONLYOFFICE/onlyoffice-wordpress
Configure the plugin via the WordPress interface. Go to WordPress administrative dashboard -> ONLYOFFICE -> Settings and specify the following parameters:
ONLYOFFICE integration plugin allows WordPress administrators to open files for collaborative editing using ONLYOFFICE Docs (online document editors). In published posts, the editors are visible to all WordPress site visitors (both authorized and unauthorized) in the Embedded mode only.
Editing files uploaded to WordPress
All uploaded files from the Media section will appear on the ONLYOFFICE -> Files page. The editor opens in the same tab by clicking on the file name. Users with administrator rights are able to co-edit documents. All the changes are saved in the same file.
Creating a post
When creating a post, you can add the ONLYOFFICE element (block) and then upload a new file or select one from the Media Library. The added file will be displayed as the ONLYOFFICE logo with the file name in the currently edited post. After the post is published (when you press the Publish or Update button), your WordPress site visitors will have access to this file for viewing in the Embedded mode.
The ONLYOFFICE integration follows the API documented here.
Download the WordPress ONLYOFFICE integration plugin here.