Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeEmacs
</script>
window.WEBSPELLCHECKER_CONFIG = {
    ...
    onAddWordToUserDictionary: function(word, instance) {
        // word - a word added to the dictionary.
     console.log(word);
   // instance - a WEBSPELLCHECKER instance.
    },
    onDeleteWordFromUserDictionary: function(word, instance) {
        // word - a word deleted from the dictionary.console.log(word);
        // instance - a WEBSPELLCHECKER instance.
    }}
};
</script>

For the versions of the package before release 5.5.8, there is a temporary workaround available if you need to listen to Add or remove word actions performed by end users.

...