- Issue created by @DamienMcKenna
- πΊπΈUnited States DamienMcKenna NH, USA
This code has been working for me in local testing.
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.
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"}}]]
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.
Complete the changes.
Active
1.0
Code
This code has been working for me in local testing.