Get Started
Plugins
Macros
More information

Chess

Description

Inserts a Chess Board object into the document editor. The object makes it possible to edit and save the chess position in the FEN format.

Plugin type: visual, OLE-object, non-system.

Supported editors: documents, spreadsheets, presentations.

Chess
Installation

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

Usage
  1. Open the Plugins tab and press Chess.
  2. A chessboard window will appear on the screen and you can play chess.
  3. To interrupt the game, press the Ok button. The game preview in form of an image will appear in your document with all the changes saved. Click it to continue the game.
Plugin structure

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

  1. config.json, index.html and code.js
  2. Icons
  3. index_about.html for the plugin About window
Config
{
    "name" : "chess(fen)",
    "guid" : "asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}",

    "variations" : [
        {
            "description" : "chess",
            "url"         : "index.html",

            "icons"           : ["icon.png", "icon@2x.png"],
            "isViewer"        : true,
            "EditorsSupport"  : ["word", "cell", "slide"],

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

            "initDataType"    : "ole",
            "initData"        : "",

            "isUpdateOleOnResize" : true,

            "buttons"         : [ { "text": "Ok", "primary": true },
                                { "text": "Cancel", "primary": false } ]
        },
        {
            "description" : "About",
            "url"         : "index_about.html",

            "icons"           : ["icon.png", "icon@2x.png"],
            "isViewer"        : true,
            "EditorsSupport"  : ["word", "cell", "slide"],

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

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

            "isUpdateOleOnResize" : false,

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

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

The main plugin code is located here.

Support

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