Although the solution provided below works well for a variety of events, I have encountered an issue when attempting to bind the scroll
event. When I bind the scroll
event as shown and scroll in the browser's window (rather than the editor), it triggers properly. However, scrolling inside the editor does not trigger the event:
setup: function(ed){
ed.on('scroll', function() {
console.log('Editor window scrolled!');
});
}
tinymce event binding demonstration