I'm developing a Firefox extension. I want to see if the selected text is in a editable area like in a WEBMAIL, GOOGLE DOCS, etc. If it is then some items in the context menu will be available in order to modify that text. As i happened to find these editable textareas are located inside a certain iframe.
After contextmenu happens how do i check if the selected text that was right clicked is inside an iframe (therefore editable) so i can make the context menu items visible?
window.addEventListener("contextmenu", function(e) { var menu = document.getElementById('crypt'); if(x) { menu.hidden=false; } else { menu.hidden=true; } }, false);
Thank you, Alex!