loadModule

loadModule(url, callback)

Defines the method used to load a remotely located text resource.

Parameters:

Name Type Description
url string

The resource code URL.

callback function

The result that the method returns.

Returns:

This method doesn't return any data.

Example

Copy code
window.Asc.plugin.loadModule("./vendor/highlight/styles/" + e.params.data.id , function(content) {
    var style_value = content;
    if (isDE || isFF) {
        $("#jq_color").spectrum("set", (hexc($(container).css('backgroundColor'))));
    } else {
        background_color.value = hexc($(container).css('backgroundColor'));
    }
});