I am trying to detect when the user has left the tinyMCE editor window but I am unable to do so. Here is the code that i think should work (but isnt):
$('.mceEditor').blur(function(){
// I would expect this to fire when the user leaves the
// tinyMCE editor, but it never seems to fire
});
I've also tried:
$('*')
.not('.mceEditor, .mceEditor *')
.click(function(){
// I would expect this to fire when anything but the tinyMCE editor
// has been clicked, but it seems to fire at every click
});
Neither methods are working and ive been at this for hours. Any help would be greatly apreciated.
Thanks, Simon
PS: I am using the jquery plugin version, found here: http://tinymce.moxiecode.com/examples/example%5F23.php