I'm trying to write an extension that takes text typed by user in real time. I've succeeded to take text from textarea etc in web pages. but not from composed mail area in gmail, I believe that the main problem is that the composed mail box appears only after clicking on the 'compose' button.
This is my code:
$( document ).ready( function() {
$('div, input, textarea, html, iframe').focus( function() {
$(this).keyup(function(){
var text = $(this).val();
console.log("text: " + text );
});
});
});
Can someone help me understand how to manage in taking the text from the composed message body?