How to subscribe to addWordToUserDictionary and deleteWordFromUserDictionary action
</script>
window.WEBSPELLCHECKER_CONFIG = {
...
onAddWordToUserDictionary: function(word, instance) {
console.log(word);
},
onDeleteWordFromUserDictionary: function(word, instance) {
console.log(word);
}
};
</script><script>
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
});
}
};
</script>PreviousHow to initialize WProofreader in several text fields with different languages?NextReplace action is not captured in CKEditor onChange event
Last updated
Was this helpful?