Inline responsive images

Component ID

2660188

Component name

Inline responsive images

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

8996

Component created

Component changed

Component body

Inserting an image in the text editor dialog today allows the user to fiddle with image dimensions. It doesn't even have aspect ratio locking.

It's not great for the authoring experience nor for structured content reasons that users are defining the specific dimensions of every single image they insert. It'd be much better to allow them to choose from image styles — just like we do for image fields.

This module lets users select a responsive style OR a image style to place images in the content.

Credits

This module is essentially a stand alone version of the patch in this issue:
#2061377: Allow image style to be selected in Text Editor's image dialog (necessary for structured content)
When that patch makes it in into core, this module is no longer needed.

We would like to credit the original authors of that patch: Wim Leers, mdrummond, Jelle_S, miraj9093, tonnosf, erik.erskine, dimaro, garphy, juancasantito.

Installation

  • Enable the module
  • Add the textformat filter (Responsive or image style)
  • Select the styles you want to expose