跳到主要内容

onClick

The function called when the user clicks on the element.

Parameters

NameData typeDescription
isSelectionUsebooleanDefines if the selection is used or not.
window.Asc.plugin.attachEditorEvent("onClick", (isSelectionUse) => {
window.Asc.plugin.executeMethod("GetCurrentContentControlPr", [], function(obj) {
window.Asc.plugin.currentContentControl = obj;
var controlTag = obj ? obj.Tag : "";
if (isSelectionUse)
controlTag = "";

});
});