Get Started
Plugins
Macros
More information
|
Adding plugins to ONLYOFFICE Docs on-premises![]() Install plugins in self-hosted ONLYOFFICE Docs
Close
There are three ways to add plugins: through the sdkjs-plugins folder, through the config.json file or through the plugin manager. Adding plugins through the sdkjs-plugins folderPut the folder with the plugin code to the ONLYOFFICE Docs folder. The path to the folder depends on the operating system you use:
The plugins will be available to all the users of ONLYOFFICE Docs on-premises. In some cases, service restart is required. For debugging, start ONLYOFFICE Docs together with the shared sdkjs-plugins folder: docker run -itd -p 80:80 -v /absolutly_path_to_work_dir:/var/www/onlyoffice/documentserver/sdkjs-plugins/plugin onlyoffice/documentserver-ee:latest Adding plugins through the config.json fileIn ONLYOFFICE Docs config, add the relative path to the config.json file of the created plugin to the plugins.pluginsData parameter: var docEditor = new DocsAPI.DocEditor("placeholder", { "editorConfig": { "plugins": { "autostart": [ "asc.{0616AE85-5DBE-4B6B-A0A9-455C4F1503AD}", "asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}", ... ], "pluginsData": [ "https://example.com/plugin1/config.json", "https://example.com/plugin2/config.json", ... ] }, ... }, ... }); Where example.com is the name of the server where document manager and document storage service are installed and the plugins are placed. See the How it works section to find out more on ONLYOFFICE Docs service client-server interactions. https://example.com/plugin1/config.json is the path to the plugin. If there is already a test example in the config, replace the following line /etc/onlyoffice/documentserver-example/local.json with the path to the necessary plugin config. See the ONLYOFFICE Docs API documentation for more information on where to find the config and what and how can be changed there.
Adding plugins through the plugin managerStarting from version 7.2, you can download ready-to-use plugins from ONLYOFFICE Plugin Marketplace. Follow the steps below to add the plugins to the editor using plugin manager:
![]() The plugin will be added to the opened editors and all the editors you will open afterwords and displayed within the Plugins tab. Removing plugins from ONLYOFFICE Docs on-premisesYou can uninstall plugins in three ways: Option 1. Go to the sdkjs-plugins folder and remove the corresponding plugin folder from this directory. The path to the folder depends on the operating system you use:
Option 2. Edit the ONLYOFFICE Docs config by removing the corresponding plugin. The plugin will become unavailable for all portal users upon the editor next start: var docEditor = new DocsAPI.DocEditor("placeholder", { "editorConfig": { "plugins": { "autostart": [ The plugins will be removed for all the users. In some cases, service restart is required. The table below contains default plugins guids to make it easier for you to find them: Default plugins guid’s
Option 3. To uninstall the newly added plugin, proceed in the following way:
|