Provide reset button to remove focal point setting

Created on 15 August 2023, over 1 year ago
Updated 16 August 2023, over 1 year ago

Problem/Motivation

I'd like a reset button to remove the focal point setting from the field, similar to how the crop widget works. This would let you switch between crop and focal point using Form Mode Control.

I have help text that links to form modes configured with crop and focal point. I have to unset one to use the other, which you can do with crop.

The image style will skip crops that are not set, so I have:

  1. Manual crop: 16:9
  2. Manual crop: Crop
  3. Scale height: 900
  4. Set canvas: 1600x900
  5. Focal point scale and crop 1600x900

So far I'm able to crop the image with the crop or focal point and it seems to be working. I had to remove the focal point using javascript ($field.val(null)).

A reset button would tie this all together.

Even better would be checking for crop or focal point in the form submit and removing settings for the other.

✨ Feature request
Status

Needs review

Version

2.0

Component

Other Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024