How to add on-click listener to the badge?
If you need to capture an onclick event, when your end-users click on the WProofreader badge button, you can do the following:
var buttons = document.querySelectorAll('.wsc-badge__button');
buttons.forEach(function(button) {
button.addEventListener('click', function(e) {
// Do what you want here on badge button click event.
});
});PreviousDisabling WProofreader in source mode of WYSIWYG editors
NextHow to customize the look and feel of WProofreader?
Was this helpful?

