Use image fields from media entity reference
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3503018. -->
Reported by: [merilainen](https://www.drupal.org/user/304437)
Related to !449
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>While trying to implement a CKEditor AI Assistant for generating ALT image text for an image in a text area following the example from <a href="https://www.youtube.com/watch?v=PmChGwzilck">https://www.youtube.com/watch?v=PmChGwzilck</a> I realized that I cannot implement it when Media entity is used. Nowadays as Media library is in Drupal core, direct Image and File entity references are used rarely. </p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>It would be great to be able to get the referenced image file which is used in AI Automator chains from an Image Media entity, instead of a Image file entity directly.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue