AI CKEditor: use prompt entities instead of custom configurations
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3549657. --> Reported by: [svendecabooter](https://www.drupal.org/user/35369) Related to !940 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>For historical reasons, ai_ckeditor stores its prompts in a custom configuration (ai_ckeditor.settings) together with other settings.</p> <p>Switch to AI Prompt entities for storing default prompts would standardize the settings schema, as well as the logic in the settings form for selecting the correct prompt.</p> <p>See also <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3549153" title="Status: Closed (fixed)">#3549153: Translate: use prompt entities instead of custom configurations</a></span> for a similar change.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>1. Specify prompt types for the different AiCKEditor plugins<br> 2. Specify default prompt config entities for each of the prompt types<br> 3. Add update logic to migrate from current textarea prompts to AI prompt entities</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>1. Change the logic<br> 2. Write update hook</p> > Related issue: [Issue #3549153](https://www.drupal.org/node/3549153)
issue