Don't use a custom view mode, follow the media view mode selection

Created on 20 April 2023, about 1 year ago
Updated 25 April 2023, about 1 year ago

Problem/Motivation

2 cases :
- if crop default view mode are not the same as the "media default mode"
- If the option "Allow the user to override the default view mode" is check in media plugin, and many view mode usable

The crop widget will used a faulty view mode because the plugin only use it view mode.

Proposed resolution

The plugin need to recover informations from media settings.
If a "data-view-mode" attribute are present, follow it, use default instead

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: outdated

Version

1.1

Component

Code

Created by

πŸ‡«πŸ‡·France DrDam

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

Comments & Activities

Production build 0.69.0 2024