I an using Tinymce Editor. In need to access tinymce iframe with jquery I had tried...
var iframe = $('#comment_ifr')[0];//document.getElementById('comment_ifr');// or $('#comment_ifr')[0]; the other is just faster.
alert(iframe);
var doc = iframe.document || iframe.contentDocument || iframe.contentWindow && iframe.contentWindow.document || null;
//if( !doc ) return;
//and now jquery
$( "img", doc ).click(function() {
alert('image clicked');
});
----------
In my above code once an image inserted in tinymce iframe. Once i click that image i need to trigger an event. Help me.