We can use Asc.scope object, passing parameters to the callcommand method
So what should I do if I want to get the value in callcommand from the callback of callcommand
window.Asc.plugin.callCommand(function () {
var oWorksheet = Api.GetActiveSheet();
var ActiveCell = oWorksheet.ActiveCell;
var text = ActiveCell.GetComment();
Asc.scope.text = text;
}, false, false, function (a) {
//How to get text
});