Problem/Motivation
Not sure if this is a setup issue, but I recently updated inline responsive images to 3.0.1 and now no responsive image styles populate the drop down when using the 'Insert image' option (Ckeditor 4)
Setup
1. Drupal 10.3.13
2. Inline responsive images 3.0.1
3. Ckeditor 4 (I realise this is deprecated, but im stuck with it for now)
With the 'basic html' text format configured for 2 inline responsive image styles, I see this in my text format config
filter_responsive_image_style:
id: filter_responsive_image_style
provider: inline_responsive_images
status: true
weight: -42
settings:
image_styles:
card: '0'
hero_image: '0'
image_sequence: '0'
large_cards: '0'
latest_news: '0'
media: '0'
media_and_text: '0'
media_and_text_links: '0'
narrow: '0'
ward_chc_header: '0'
wide: '0'
wysiwyg_default: wysiwyg_default
wysiwyg_image_cropped: '0'
wysiwyg_medium: wysiwyg_medium
However, in inline_responsive_images_form_editor_image_dialog_alter
if ($filters['filter_responsive_image_style']->settings['responsive_style_' . $responsive_image_style_id] ?? FALSE) {
$responsive_image_options[$responsive_image_style_id] = $responsive_image_style->label();
}
Results in no options, because the key esponsive_style_ . $responsive_image_style_id
doesn't exist in my filter config
I'll attach what seems to fix this for me, but id have to confess to not being particularly familiar with this module, as above this could be a config issue my side.