Global

Members

(constant) WEBSPELLCHECKER_CONFIG :Object

Represents default configuration for Editable Controls.

Type:
  • Object
Example
<script>
    window.WEBSPELLCHECKER_CONFIG = {
        serviceId: 'Your current service ID',
        serviceProtocol: 'http',
        serviceHost: 'svc.webspellchecker.net',
        servicePath: 'spellcheck31/script/ssrv.cgi',
        servicePort: '80',
        lang: 'en_US'
    };
</script>

Methods

webspellcheckerAlreadyLoaded()

The function which runs when wscbundle.js is already loaded.

Example
// Asynchronous loading
<script async src="path/to/wscbundle.js"></script>

<script>
    // Define the function 'webspellcheckerAlreadyLoaded' which will be launched right after is fully loaded.
    function webspellcheckerAlreadyLoaded() {
        // 'init' method is available to be launched.
        WEBSPELLCHECKER.init({
            container: document.getElementById('elementId'),
            autoStartup: true,
            serviceProtocol: 'http',
            servicePort: '80',
            serviceHost: document.location.host,
            servicePath: 'spellcheck/script/ssrv.cgi'
        });
    }
</script>

Type Definitions

CallbackError(ErrorObject)

Error callback.

Parameters:
Name Type Description
ErrorObject object