I'm using the Image_Widget_Crop module for a Drupal 8 website. In this module there is a .js file setting the default values for Cropper.
Drupal.ImageWidgetCropType.prototype.defaultOptions = {
autoCropArea: 1,
background: false,
responsive: false,
viewMode: 1,
zoomable: false
};
I want to add a setting without putting it in the module so when updating my change doesn't get lost, how can I do this?
I want it to look like this.
Drupal.ImageWidgetCropType.prototype.defaultOptions = {
autoCropArea: 1,
background: false,
responsive: false,
viewMode: 1,
zoomable: false,
toggleDragModeOnDblclick: false
};