Описание

Объект используется для передачи любых дополнительных данных (объектов, параметров, переменных и т. д.) методу window.Asc.plugin.callCommand, который выполняется в своем собственном изолированном контексте.

Функции нельзя передать методу callCommand с помощью объекта Asc.scope.
Пример

(function(window, undefined){
    var scopeText = ["Hello World!", "This is me!", "I'm glad to see you!!!"];
    window.Asc.plugin.init = function() {
        Asc.scope.st = scopeText;
        this.callCommand(function() {
            var oDocument = Api.GetDocument();
            var oParagraph = Api.CreateParagraph();
            for (var i = 0; i < Asc.scope.st.length; i++)
            {
                oParagraph.AddText(Asc.scope.st[i] + "<br />");
            }
            oDocument.InsertContent([oParagraph]);
        }, true);
    };
    window.Asc.plugin.button = function(id)
    {
    };
})(window, undefined);