[PP-1] [drupalImage] Restrict available image styles for uploaded images

Created on 2 January 2017, almost 8 years ago
Updated 8 March 2024, 9 months ago

Follow-up to Allow image style to be selected in Text Editor's image dialog Needs work .

Problem/Motivation

In the parent issue, discussion came up regarding site owners not necessarily wanting to allow all users to choose image styles for every uploaded inline image. Removing the choice from authors makes sense for simplifying usability, but that choice should still be available to some users. Other potential concerns include:

  1. Arbitrarily limit which image styles are available to authors, instead of blanket-allowing all.
  2. Vary available image styles by text format, CT/field, or role.

Proposed resolution

Add a default image style to the FilterImageStyle settings form. Require administer image styles permission to change it.

Allow selection of image style in EditorImageDialog only if user has administer image styles permission. Use configured default image style otherwise.

Remaining tasks

  1. Discuss desired functionality.

User interface changes

  • A new selection for image style in FilterImageStyle settings.
  • Image selection in EditorImageDialog and FilterImageStyle settings might be hidden depending on permissions.

API changes

None.

Feature request
Status

Postponed

Version

11.0 🔥

Component
CKEditor 5 

Last updated 1 day ago

Created by

🇺🇸United States ifreeman

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024