Create plugins for interacting with multimedia in AI
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3463843. -->
Reported by: [kevinquillen](https://www.drupal.org/user/317279)
Related to !1431 !761
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Now that <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3462674" title="Status: Closed (fixed)">#3462674: Create a generic AI plugin layer for CKEditor</a></span> is pending a merge, one of the final OOTB AI plugins for CKEditor is generating an image from providers and saving the result back to the media library in Drupal. This would be a core piece of CKEditor plugin functionality. This is true for text to speech or audio providers as well.</p>
<p>This is more of an intermediate task as I assume the plugin would need to understand how to convert the saved responses into the Media library (Image, Audio) and downcast them to CKEditor <drupal-media> tasks - while allowing the user to possibly select the media view mode for display.</drupal-media></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Create plugin(s) for generating image and audio for CKEditor.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>tbd</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>None - happens in the dropdown introduced in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3462674" title="Status: Closed (fixed)">#3462674: Create a generic AI plugin layer for CKEditor</a></span>.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>This may require an Interface update so plugins can flag if they return HTML/Element(s) so the AIUI JS plugin in CKEditor can insert it correctly into the editor instance.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None.</p>
> Related issue: [Issue #3462674](https://www.drupal.org/node/3462674)
issue