Description of the use case

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:

    onStatistics: function(data, instance) {
        if (data.action !== 'replace') {
        // React somehow on the `replace` action inside the editable field.

All the available options and methods for WProofreader SDK are available here: