ai-3586569: ai_ckeditor: Add option to show or hide the "AI Writer" status information
Description
When enabling the ai_ckeditor submodule and enabling the plugin for the text format, a status information such as "AI Writer: Idle" is shown on every editor. This is provided in a hardcoded way by the AiNetworkStatus.js file.
Some users may not want to see this status information. Therefore, it would be great being able to conveniently show or hide this information via configuration.
Solution
Add a configuration option into ai_ckeditor.settings and expose it via UI.
Testing instructions
- Enable AI + AI CKEditor. Run
npm ci && npm run buildin modules/ai_ckeditor. - Configure a text format with the AI CKEditor toolbar button and at least one AI plugin enabled.
- Visit /admin/config/ai/ckeditor — confirm "Show AI Writer status information" checkbox exists and is checked by default.
- Edit content using that text format — confirm "AI Writer: Idle" appears below the editor.
- Uncheck the setting, save, reload content edit form — confirm status text is gone.
- Re-check the setting, save, reload — confirm status text returns.
Issue: #3586569
Edited by Mukeysh