Hi,
I would need to detect the change in JCE textarea in my script using jQuery, but I'm not able to do this. When trying to detect the textarea I used:
jQuery("body").on("click", function(e) {
console.log(e.target);
});
It detects the click on editor toolbars, but not in textarea itself which seems to be inside iframe. But also this doesn't work:
jQuery("iframe").load(function(){
jQuery(this).contents().on("mousedown, mouseup, click", function(){
alert("Click detected inside iframe.");
});
});
My goals is to call a function when there is a change detected in any of the JCE textarea's on my form.
What am I missing?
Thanks!