Skip to content

Commit

Permalink
viliusle#77 - example with edit image on page load without clicking. …
Browse files Browse the repository at this point in the history
…(still need to uncomment line 75 to enable it.)
  • Loading branch information
viliusle committed Jan 6, 2018
1 parent 5f7a91d commit 0d75cc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/open-edit-save.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,11 @@
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
};
</script>

0 comments on commit 0d75cc0

Please sign in to comment.