Convert data migrated using Media Migration to new structure

Created on 26 April 2025, 1 day ago

Problem/Motivation

When migrating a D7 site using Media Migration β†’ it would be useful if the migrated images could be adjusted to be compatible with ckeditor_media_resize.

Steps to reproduce

Migrate content from D7 using Media Migration where content looks like the following:
[[{"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"}}]]

Proposed resolution

Provide an implementation of the hook from ✨ Allow attribute mapping to be modified in MediaWysiwygFilter Active to convert the image JSON data to work with CKEditor Media Resize.

Remaining tasks

Complete the changes.

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

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