Replace action is not captured in CKEditor onChange event
PreviousHow to subscribe to addWordToUserDictionary and deleteWordFromUserDictionary actionNextUse recommendations with other writing assistance tools
Last updated
Was this helpful?
Right at this moment, when a user clicks on the suggestion, our editor needs to know (programatically) that something has changed in the original text. Unfortunately, these events are NOT captured in the onChange event of the CKEditor editor.
To track the changes in the original text programmatically, you can use the data.action attribute. Here is an example:
window.WEBSPELLCHECKER_CONFIG = {
...
onStatistics: function(data, instance) {
if (data.action !== 'replace') {
return;
}
// React somehow on the `replace` action inside the editable field.
},
...
}Check Configuration reference to see all the available WProofreader configuration options and methods.
Last updated
Was this helpful?
Was this helpful?

