Uninstalling ai_ckeditor leaves stale toolbar items in editor.editor.* configuration
<!-- Please search existing work items before filing to avoid duplicates. --> ## Summary When `ai_ckeditor` is uninstalled, it does not remove its toolbar button from existing CKEditor 5 editor configurations (`editor.editor.*`). If the **AI Balloon Menu** has been added to a text format toolbar, the configuration still references the removed plugin after uninstall. As a result, the text format configuration page can no longer build the toolbar correctly. ## Steps to reproduce 1. Install `ai_ckeditor`. 2. Go to **Configuration → Content authoring → Text formats and editors**. 3. Edit a CKEditor 5 text format (for example **Full HTML**). 4. Add the **AI Balloon Menu** button to the active toolbar and save the configuration. 5. Uninstall `ai_ckeditor`. 6. Open the same text format configuration page again. ## Expected result When `ai_ckeditor` is uninstalled, any toolbar items provided by the module should be removed from all affected `editor.editor.*` configuration entities. The uninstall confirmation page should also list the affected `editor.editor.*` configuration entities under **Configuration deletions** (or an equivalent section), so administrators are informed that these editor configurations will be updated during uninstall. The text format configuration should remain valid and editable after the module is uninstalled. ## Actual result The toolbar configuration still contains the `ai_balloon_menu` item after the module has been removed. Because the toolbar references a plugin that no longer exists, Drupal is unable to build the CKEditor toolbar correctly, causing the text format configuration page to break. ## Environment - Drupal version: 11.3.12 - Module version: 1.x - PHP version: 8.4.20 - Provider: N/A ### Screenshots / recordings *(optional)* 1) AI Balloon Menu added to the CKEditor 5 toolbar before uninstalling `ai_ckeditor` `/admin/config/content/formats/manage/full_html`. ![1-ai-ckeditor-ai-balloon-added](/uploads/be05c648fbe082439084539a5e5939a5/1-ai-ckeditor-ai-balloon-added.png){width=433 height=431} 2) The uninstall confirmation page does not indicate that affected `editor.editor.*` configurations will be updated during uninstall. ![2-ai-ckeditor-uninstalling](/uploads/a03dfbe8230c1212134d302813d2c1b3/2-ai-ckeditor-uninstalling.png){width=386 height=600} 3) The text format configuration page is broken after uninstalling `ai_ckeditor` because the toolbar still references `ai_balloon_menu`. ![3-ai-ckeditor-text-format-broken-after-uninstall](/uploads/5a458af901c265b9a259f2b7ddbd6ad5/3-ai-ckeditor-text-format-broken-after-uninstall.png){width=645 height=600} 4) The exported `editor.editor.full_html` configuration still contains `ai_ckeditor` plugin settings after the module has been uninstalled. ![4-ai-ckeditor-configuration-after-uninstall-a](/uploads/6d59d869ddc6723387dc57720e93df44/4-ai-ckeditor-configuration-after-uninstall-a.png){width=440 height=365} ![4-ai-ckeditor-configuration-after-uninstall-b](/uploads/f90526d131cf500b12c5a59c8f7afee0/4-ai-ckeditor-configuration-after-uninstall-b.png){width=315 height=330} ### Error messages or logs *(optional)* The exported editor configuration still references the removed toolbar item: ```yaml settings: toolbar: items: - ai_balloon_menu ``` Since the plugin no longer exists after uninstall, the editor configuration becomes invalid. <!-- If this issue description was significantly AI-generated (entire sections, not autocomplete), please note it in a comment below. See https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquette/policy-on-the-use-of-ai-when-contributing-to-drupal --> <!-- If you discover this is a duplicate of an existing issue, use: /duplicate #<issue> -->
issue