Get Started
Plugins
Macros
More information

Move cursor

Description

Moves the text cursor to the document beginning/end.

Plugin type: visual, non-system.

Supported editors: documents.

MoveCursor
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 Example move cursor.
  2. Press the Start button to move the text cursor to the document beginning.
  3. Press the End button to move the text cursor to the document end.
Plugin structure

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

  1. config.json, index.html and code.js
  2. Icons
Config
{
    "name" : "Example move cursor",
    "guid" : "asc.{EF5735E0-69A7-4D4A-9ABE-F58FD70F488D}",

    "variations" : [
        {
            "description" : "Example move cursor",
            "url"         : "index.html",

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

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

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

            "isUpdateOleOnResize" : false,

            "buttons"         : []

        }
    ]
}
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.