jQuery pop up in rich editor
Viewing 3 Posts - 1 through 3 (of 3 total)
Author | Posts |
---|---|
December 4, 2013 at 3:48 am 13233 | |
Tareq Hasan | I have literally been working on this everyday for a week and I can't figure it out.
I need to add a jQuery tool tip to a rich text box and I'm having a very difficult time getting it to work.
I have no problem doing this on the regular (teeny) text box but, since the rich editor is in an iframe, I can't get it to fire.
Here's the code I'm using to show a tooltip when users click in the teeny excerpt editor; I've included the php just in case that's a factor.
This code works:
I can even modify the contents of the iframe by replacing the action in the code above with the following:
$('#post_content_ifr').contents().find('.mceContentBody').html("<p>George</p>");
But I can't figure out how to add the same kind of click event to the iframe that I have for the teeny editor text area. I've spent hours reading and tried it a hundred different ways but I'm not having much luck.
Any suggestions? |
December 4, 2013 at 1:02 pm 13267 | |
Tareq Hasan | I think you’ve to handle directly via TinyMCE, may be with an onClick event. |
December 4, 2013 at 8:40 pm 13306 | |
gpspake | @Tareq, |
December 5, 2013 at 12:49 pm 13357 | |
Tareq Hasan | This works: |
Viewing 3 Posts - 1 through 3 (of 3 total)