Recommendation for converting alignments added via "style" attribute

Created on 26 April 2025, 22 days ago

Problem/Motivation

Any suggestions on how to process images that had alignment defined via style elements on the media object? For example:
[[{"fid": "1146","view_mode": "default","fields": {"format": "default","field_file_image_alt_text[und][0][value]": false,"field_file_image_title_text[und][0][value]": false,},"type": "media","link_text": null,"field_deltas": {"1": {"format": "default","field_file_image_alt_text[und][0][value]": false,"field_file_image_title_text[und][0][value]": false,}},"attributes": {"height": 323,"width": 400,"style": "height: 283px; width: 350px; margin: 5px 8px; float: right;","class": "media-element file-default","data-delta": "1"}}]]

When that's converted to a D10+ Media object the "attributes" structure is completely removed.

Proposed resolution

Remaining tasks

API changes

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024