Docs are missing directions for saving the cropped region. I would assume doing the following during the callback for any event listener but I'm not sure.
crop.on('end', function (region) {
var canvas = document.getElementById('canvas');
var ctx = canvass.getContext('2d');
var image = document.querySelector('#edit-image img');
ctxs.drawImage(images, region.x, region.y, region.width, region.height);
});
Docs are missing directions for saving the cropped region. I would assume doing the following during the callback for any event listener but I'm not sure.