Methods
(static) destroyAll()
Destroys all WEBSPELLCHECKER instances. Do not use it if the web page contains the WEBSPELLCHECKER integration by plugins (e.g SCAYT Plugin for CKEditor 4).
Example
WEBSPELLCHECKER.destroyAll();
(static) getInstances() → {Array.<EditableControlsInstance>}
Returns Editable Controls application instances.
Returns:
- array of the Editable Controls application instance.
- Type
- Array.<EditableControlsInstance>
Example
var wscInstances = WEBSPELLCHECKER.getInstances();
(static) init(options, callbackSuccess, callbackError) → {EditableControlsInstance}
Creates Webspellchecker application for Editable controls.
Parameters:
Name | Type | Description |
---|---|---|
options |
Options | |
callbackSuccess |
CallbackSuccess | |
callbackError |
CallbackError |
Returns:
- link to instance of Editable Controls application.
Example
var wscInstance;
WEBSPELLCHECKER.init({
container: 'originalElementId',
autoStartup: true,
spellcheckLang: 'de_DE',
localization: 'de',
serviceProtocol: 'http',
servicePort: '80',
serviceHost: document.location.host,
servicePath: 'spellcheck/script/ssrv.cgi'
},
function(instance) {
wscInstance = instance;
},
function(error) {
console.log(error);
}
);
(static) startAutoSearch()
Starts the WEBSPELLCHECKER auto search mechanism manually.
Example
WEBSPELLCHECKER.startAutoSearch();
(static) stopAutoSearch()
Stops the WEBSPELLCHECKER auto search mechanism manually.
Example
WEBSPELLCHECKER.stopAutoSearch();