TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

Hello World

Description

Inserts the Hello world! phrase when the user presses the button.

Plugin type: non-visual, non-system.

Supported editors: documents.

HelloWorld
Installation

Download this plugin from GitHub and install it following the desktop, on-premises, or cloud installation instructions.

Usage
  1. Find the plugin on the Plugins tab.
  2. Click the hello world button.
Plugin structure

Repository on GitHub: https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/helloworld.

  1. config.json, index.html, and helloworld.js
  2. Icons
  3. index_about.html for the plugin About window
Config
{
    "name"       : "hello world",
    "guid"       : "asc.{0616AE85-5DBE-4B6B-A0A9-455C4F1503AD}",
    "baseUrl"    : "",
    "variations" : [
        {
            "description"         : "hello world",
            "url"                 : "index.html",

            "icons"               : ["resources/img/icon.png", "resources/img/icon@2x.png"],
            "isViewer"            : false,
            "EditorsSupport"      : ["word"],

            "isVisual"            : false,

            "initDataType"        : "none",
            "initData"            : "",

            "buttons"             : []
        },
        {
            "description"         : "About",
            "url"                 : "index_about.html",

            "icons"               : ["resources/img/icon.png", "resources/img/icon@2x.png"],
            "isViewer"            : false,
            "EditorsSupport"      : ["word"],

            "isVisual"            : true,
            "isModal"             : true,
            "isInsideMode"        : false,

            "initDataType"        : "none",
            "initData"            : "",

            "buttons"         : [
                {
                    "text": "Ok",
                    "primary": true
                }
            ],

            "size" : [392, 147]
        }
    ]
}
Methods and events
Support

If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.