GetCurrentContentControlPr

GetCurrentContentControlPr(contentFormat) → { ContentControlProperties }

Returns the current content control properties.

Parameters:

Name Type Description
contentFormat string

The content format ("none", "text", "html", "ole" or "desktop").

Returns:

Type
ContentControlProperties

Example

Copy code
window.Asc.plugin.event_onClick = function (isSelectionUse) {
    window.Asc.plugin.executeMethod ("GetCurrentContentControlPr", [], function (obj) {
        window.Asc.plugin.currentContentControl = obj;
        var controlTag = obj ? obj.Tag : "";
        if (isSelectionUse)
            controlTag = "";
        ... 
    }); 
};