I'm using TinyMCE for a textarea on a page but it doesn't play nice in the tabbing order of the other elements.
I can use the following code to capture when I tab out of the first element:
$('#title').live('keypress', function (e) {
if(e.keyCode == 9) {
alert('tabbed out');
}
});
How can I set the focus to a TinyMCE editor?
The above works in Firefox, Chrome and IE as well. I have not tested in other browsers.