field formatter image alignment

Created on 19 September 2014, over 10 years ago
Updated 19 September 2023, over 1 year ago

I would like to have an option to specify left/right/center alignment when using the field formatter, both in node display and when displaying the field in views output.

When adding an inline picture in ckeditor there is such an option for image alignment, and it outputs code like:

<img data-picture-align="left" data-picture-mapping="thumbnail" src="blah"... />

Which is then rendered similar to:

<picture data-picture-mapping="thumbnail" data-picture-align="left">
 <source ...>
 <source ...>
 <img data-picture-mapping="thumbnail" data-picture-align="left" src="blah" ...>
</picture>

I'd like to have those same attributes available in field formatters.

✨ Feature request
Status

Closed: outdated

Version

2.7

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States jnorell

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