Config

Description

The config.json file is generated based on the data from the package.json file.

Parameters
Name Description Type Example
The plugin author. string "ONLYOFFICE"
The list of all third-party resources that are used in the plugin. array of strings ["https://embed.diagrams.net/", "https://*.diagrams.net/"]
The description, i.e. what describes your plugin in the best way. string "plugin description"
The plugin homepage. For example, it can be the plugin GitHub repository. string "https://example.com/url-to-plugin-repository"
The name of the logo image. It is equal to the logo parameter from the package.json file. The required icon size is 48x48 px. Otherwise, it will be compressed to this size. string "logo.png"
The plugin license. string "MIT"
The plugin name. string "plugin name"
The name by which the plugin is registered in the window object. It must match the plugin name from the plugin.js file. string "plugin name"
The plugin scopes which are converted from an array into a string. string "ContextMenu,InfoPanel,MainButton"
The current plugin version. string "1.0.0"
Example
{
    "author": "ONLYOFFICE",
    "cspDomains": [
      "https://embed.diagrams.net/",
      "https://*.diagrams.net/"
    ],
    "description": "plugin description",
    "homePage": "https://example.com/url-to-plugin-repository",
    "image": "logo.png",
    "license": "MIT",
    "name": "plugin name",
    "pluginName": "plugin name",
    "scopes": "ContextMenu,InfoPanel,MainButton",
    "version": "1.0.0"
}