Templates

Description

Inserts document templates generated by the Document Builder script.

Plugin type: visual, non-system.

Supported editors: documents.

Templates

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. Choose any document template you want to set and click it.

Plugin structure

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

  1. config.json, index.html, and templates.js
  2. Icons
  3. The templates folder contains document templates.

Config

{
  "name": "Document Templates",
  "guid": "asc.{94DF0B57-299D-4F68-AF6F-9A6BB53F3031}",

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

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

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

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

      "buttons": []
    }
  ]
}

Methods and events

  • button
  • init
  • onExternalMouseUp
  • callModule
  • info.recalculate

Support

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

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).