GetCurrentContentControl

GetCurrentContentControl() → { string }

Returns an identifier of the selected content control (i.e. the content control where the mouse cursor is currently positioned).

Parameters:

This method doesn't have any parameters.

Returns:

Type
string

Example

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