BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
[JavaScript] var rteObj, isFocus, data; $(function () { $("#rteSample").ejRTE({ width: "850px", showFooter: true, }); rteObj = $("#rteSample").data("ejRTE"); $("#" + rteObj.element[0].id + "_Iframe").contents().on("click", function () { //get html string in iframe textarea using getHtml() method if (!isFocus) data = rteObj.getHtml(); //maintain flag variable for element focused or not. isFocus = true; }); //when click the document or any other popup element append in body the document click will triggered $(document).click(function (e) { //validate the iframe is focused in previously or not, then made any changes in html string if (isFocus) { alert("content saved"); isFocus = false; } }); }); |
Please let us know if you have any queries.
Regards,
M.Manikandan