You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

There is a temporary workaround available if you need to listen to Add or remove word actions performed by end users.

This is a temporary solution which will be later replaced with public callback functions.

window.WEBSPELLCHECKER_CONFIG = {
    autoSearch: true,
    ....,
    onLoad: function(instance) {
        instance.subscribe('addWordToUserDictionary', function(data) {
            // Get the added `word` from `data.word` field
        });

        instance.subscribe('deleteWordFromUserDictionary', function(data) {
            // Get the deleted `word` from `data.word` field
        });
    }
};