Get Started
Plugins
Macros
More information

Auxiliary objects

Description

The auxiliary objects that define additional settings for the plugin to work.

See the available objects below to find more about them.

Objects
Name Description
info object Defines the object that stores all the information about the editor that uses the plugin and additional settings for OLE objects.
Asc.scope object Defines the object that is used to pass any additional data (objects, parameters, variables, etc.) to the window.Asc.plugin.callCommand method, which is executed in its own isolated context.
InputHelper object Defines the input helper properties.
Example
(function(window, undefined){
    var text = "Hello world!";
    window.Asc.plugin.init = function() {
        Asc.scope.text = text;
        this.callCommand(function() {
            var oDocument = Api.GetDocument();
            var oParagraph = Api.CreateParagraph();
            oParagraph.AddText(Asc.scope.text);
            oDocument.InsertContent([oParagraph]);
        }, true);
    };
    window.Asc.plugin.button = function(id)
    {
    };
})(window, undefined);