Get Started
Plugins
Macros
More information

window.Asc.plugin.executeMethod ("GetCurrentContentControl", callback)

Description

Defines the method that allows getting the identifier of the selected content control (i.e. the content control where the mouse cursor is currently positioned).

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("GetCurrentContentControl");
Returns

The method returns the content control internal ID in the string format.

Example
document.getElementById("buttonIDChangeState").onclick = function () {
    _Control = [];
    window.buttonIDChangeState_click = true;
    window.Asc.plugin.executeMethod("GetCurrentContentControl");
};