Jump to content

ProcessPageEditImageSelect: Change Cropping options


iipa
 Share

Recommended Posts

Hi fellow developers!

I have a basic image field on my page. I would like to force a specific aspect ratio when user wants to crop the image. Module apparently uses crop.js for cropping features, and I found some settings related to it in ProcessPageEditImageSelect.js:

var cropSettings = {
    autoCrop: true,
    autoCropArea: 0.35,
    zoomable: false,
    rotatable: false,
    // etc ...
};

I would like to change these settings, but obviously I don't want to do so straight in module code (especially because it is in wire).

Question is: How can I refer to these settings somewhere safer? (For example I have admin.js where I already do some other stuff in admin pages located in site/templates/scripts)

Link to comment
Share on other sites

  • 5 weeks later...

Hey @iipa – just a quick heads-up that I've moved this thread to the General Support area of the forum. Modules/Plugins area of the forum is dedicated for (third party) module support threads (of which there should be one per module), and this question is about a core module/feature ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...