How to add on-click listener to the badge?
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 editorsNextHow to customize the look and feel of WProofreader?
Last updated
Was this helpful?