Closed hktalent closed 5 years ago
bug?iframe nothing?
var iframeContent = $(o.contentDocument || o.contentWindow.document).find("div.box")[0]; domtoimage.toJpeg(iframeContent,{ quality: 0.65 }).then(function (dataUrl) { var link = document.createElement('a'); link.download = id + '.jpeg'; link.href = dataUrl; link.click(); });
save:
have you tried attaching to a dom item, inside of the iframe?
ok @Adondriel
bug?iframe nothing?
145
save:![image](https://user-images.githubusercontent.com/18223385/51168838-5c804b80-18e5-11e9-88c8-d68e896b1b78.png)