From 0d75cc08a0bd7e828a4e24bdff80c830464365c2 Mon Sep 17 00:00:00 2001 From: Vilius Date: Sat, 6 Jan 2018 16:17:38 +0200 Subject: [PATCH] #77 - example with edit image on page load without clicking. (still need to uncomment line 75 to enable it.) --- examples/open-edit-save.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/open-edit-save.html b/examples/open-edit-save.html index cef1615..83e67e0 100644 --- a/examples/open-edit-save.html +++ b/examples/open-edit-save.html @@ -67,4 +67,11 @@ function my_update(){ target.height = dim.height; target.src = tempCanvas.toDataURL(); } + +/** + * will auto load image on page load. Uncomment line below to make it work + */ +window.onload = function () { + //open_image(document.getElementById('testImage')); //uncomment me +}; \ No newline at end of file