I\'m writing a plugin for TinyMCE and have a problem with detecting click events inside an iframe.
From my search I\'ve come up with this:
Loading iframe:>
I know this is old but the ID's don't match in your code one is choose_pic and one is choose_pics:
$("#filecontainer").contents().find("#choose_pic").click(function(){ //do something });