Make image style in WYSIWYG optional

Created on 25 October 2016, about 8 years ago
Updated 19 September 2023, about 1 year ago

The image style select list for picture rely on this javascript code to make it mandatory (cf. picture/ckeditor/plugins/plugin.js) :

validate: function() {
  if (this.getValue() == 'not_set') {
    var message = 'Please make a selection from ' + Drupal.settings.picture.label;
    alert(message);
    return false;
  } else {
    return true;
  }
}

I think the user should get the possibility to insert an image without any image style, or maybe we could make this behavior customizable in the admin settings.

Is there any reason to have this mandatory ?

Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇫🇷France tostinni

Live updates comments and jobs are added and updated live.
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 Kingdom lesleyfernandes

    I am closing all very old tickets that have not received comments for a long time. If someone still faces these issues or thinks they are relevant, please reopen it. Feel free to contribute with more info or a patch.

Production build 0.71.5 2024