sourceEditing plugin no longer gets enabled automatically in 1.1.x
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3527899. -->
Reported by: [svendecabooter](https://www.drupal.org/user/35369)
Related to !646
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Issue <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3499702" title="Status: Closed (fixed)">#3499702: AI CKEditor requires the Source CKEditor button</a></span> added logic to automatically enable the CKEditor5 'sourceEditing' plugin, in the response text textarea, since this is needed for the Completion plugin to work.</p>
<p>However, in branch 1.1.x most of the logic is still there, except the flag to enable this functionality on the response_text text_format form element. This seems to be missing, probably because this is now handled in the generic AiCKEditorPluginBase class.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>- Use AI module 1.1.x<br>
- Enable the AI CKeditor module<br>
- Enable the Completion ("Generate with AI") plugin<br>
- Do NOT add the source code button to your CKEditor5 toolbar by default<br>
- Try using the Completion plugin in your CKEditor5-powered text area - this will fail (as described in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3499702" title="Status: Closed (fixed)">#3499702: AI CKEditor requires the Source CKEditor button</a></span>). </p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>- Re-add the logic from <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3499702" title="Status: Closed (fixed)">#3499702: AI CKEditor requires the Source CKEditor button</a></span> to active this for the Completion plugin.</p>
> Related issue: [Issue #3499702](https://www.drupal.org/node/3499702)
issue