Followup: Allow image style to be selected in Text Editor - add preview

Created on 27 October 2016, almost 9 years ago
Updated 26 August 2025, about 2 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, it was originally planned to add an image preview so you could see the various sizes of the selected image style. That has proven problematic and isn't essential for initial functionality. The main problem with it is that the image_style_preview theme element is not responsive and doesn't handle the size shrinkage inside the ckeditor modal very well. It is a general brittleness in the image style admin screens too, so I'm moving fixing this into a new issue so we can resolve the styling of it after the parent is committed when the whole image preview functionality goes in.

In CKEditor, the right side-bars are all in the wrong place:

In the image style admin screen, things are shuffled around too. Don't make this any worse or maybe fix this while addressing the responsiveness issues in ckeditor.

Proposed resolution

Take the parts of the image preview that are in #2061377-218: [drupalImage] Optionally apply image style to images uploaded in CKEditor 5 β†’ and reimplement them here, plus fix the styling of image_style_preview so it is functional and doesn't introduce further regressions in the admin screens for managing image styles. i.e. /admin/config/media/image-styles/manage/large, etc.

User interface changes

    Adds an image preview option to the selection of the image style in ckeditor.

API changes

None.

✨ Feature request
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

image.module

Created by

heddn Nicaragua

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for sharing your idea for improving Drupal.

    We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024