I've encountered this myself.  The issue is caused by the fact that the TinyMCE 
plugin inserts other html elements into the textarea.  What you have to do is 
change your selector to parse down the node tree from the parent textarea down 
to the child element you're actually typing into.  Firebug's 'inspect' feature 
should give you the node path you need for your selector.

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Priest, 
James (NIH/NIEHS) [C]
Sent: Wednesday, May 21, 2008 1:43 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] jQuery and tinyMCE help


I've got a form with several fields and I've added some real simple
context help using jQuery with focus and blur.

$("[EMAIL PROTECTED], textarea").focus(function() {
   $(this).next('.contexthelp').show();
});

But not one of the forms is using TinyMCE and I can't for the life of me
figure out how to interact with it... I simply want my .contexthelp div
to display when the user clicks anywhere in TinyMCE but so far
everything I've tried has been unsuccessful.   I've trolled the archives
but haven't found anything helpful.

Any suggestions?

Jim

Reply via email to