The solution below works quite well for a bunch of events, but when I am trying to bind scroll, it is not working. If I bind scroll event like this and scroll the browser's window (not editors) then it gets fired, but if I scroll inside editor it doesn't:
setup: function(ed){
ed.on('scroll', function() {
console.log('Editor window scrolled!');
});
}
binding event in tinymce
Try the following:
setup: function(ed){
ed.on('init', function() {
$(ed.getWin()).bind('scroll', function(e){
console.log('Editor window scrolled!');
});
});
Its work for me :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With