Get Started
Plugins
Macros
More information

Autocomplete

Description

Helps the user to input text quickly.

Plugin type: input helper, system.

Supported editors: documents, spreadsheets, presentations.

Autocomplete
Installation

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

Usage
  1. Start typing a word. If the plugin finds some words in the dictionary, an input helper window with the found words will appear.
  2. Select the required option using the Down/Up arrow button and press the Enter button to complete the word.
Plugin structure

Repository on GitHub: https://github.com/ONLYOFFICE/plugin-autocomplete.

  1. config.json, index.html and code.js
  2. The dictionary.js file contains words for autocompletion.
Config
{
    "name" : "example_autocomplete",
    "guid" : "asc.{A103601F-FDA0-418A-BC37-A514031894C0}",

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

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

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

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

            "isUpdateOleOnResize" : false,

            "buttons"        : [ ],
   
            "events" : [
                "onInputHelperClear",
                "onInputHelperInput"
            ]
        }
    ]
}
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.