Get Started
Plugins
Macros
More information

window.Asc.plugin.executeMethod ("MoveCursorToEnd", [args], callback)

Description

Defines the method that allows moving a cursor to the end of the current editing area (document body, footer/header, footnote, or autoshape). This method is similar to pressing the Ctrl + End keyboard shortcut.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("MoveCursorToEnd", [isMoveToMainContent]);
Parameters
Parameter Description Type Example
isMoveToMainContent This flag ignores the current position and always moves a cursor to the end of the document body. boolean true
Returns

The method returns the undefined value.

Example
window.Asc.plugin.executeMethod ("MoveCursorToEnd", [true]);