I have a textarea
, and using a JQuery plugin I convert it to a simple HTML editor.
The problem is that I don't know how to asign the onchange event to the html editor, since asigning the event to the textarea itself won't work.
The plugin creates an iframe and the HTML inside this iframe is the html displayed on the html editor.
I also manage to get the HTML content using:
var html = $("#txt_extradata").closest("tr").find(".sceditor-container iframe").contents().find("html").html();
Now, how can I write an event to detect if this html changes through time?