Hector Scout
Hector Scout

Reputation: 1408

bind to the scroll event of a TinyMCE editor

I have a tinyMCE instance and I would like to know when the user scrolls inside the editor.

I know how to access the active editor and its iframe but so far have been unsuccessful in finding what fires the scroll event.

Seems simply enough...

Upvotes: 3

Views: 1256

Answers (1)

Thariama
Thariama

Reputation: 50832

You can achieve this using

$(editor.getWin()).scroll(function(){
   console.log('fire scroll')
});

Upvotes: 2

Related Questions