Toolbar in ckeditor disappears when no plugins are selected in ai assistant.

Created on 18 June 2025, 15 days ago

Problem/Motivation

Toolbar in ckeditor diappears when ai assistant icon is added to active toolbar of text formats and no plugins are enabled. Here we will require a error message to select atleast one tool for the ai tools.

Steps to reproduce

In any of the text formats add the ai assistant to the active toolbar
Save the configuration without enabling any plugin tools.
Go to content and edit any content with ckeditor field and you find the ckeditor toolbar is not available for the text format having ai assistant enabled.

Proposed resolution

Add an error message to select at least one tool from ai tools on save configuration if no tools selected.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.2

Component

AI CKEditor

Created by

🇮🇳India anjaliprasannan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @anjaliprasannan
  • Pipeline finished with Success
    15 days ago
    #525024
  • 🇮🇳India divya.sejekan

    Applied MR!683 , I can see error messages displayed in setting for AI. But i think we should get error only for AI provider field not all since some default value is already selected.
    But there is issue , if i remove AI from the active tool bar its not allowing me to save.

    Issues Summary :
    1. Should get error only for AI provider field
    2. if removed AI from the active tool bar its not allowing to save.

    Steps followed :
    1. Enabled AI module
    2. Added AI ckeditor in active toolbar , Save
    3. Remove AI from active tool bar , save

    Moving to Need work . Please check the issue.

  • Pipeline finished with Failed
    12 days ago
    Total: 212s
    #527244
  • Pipeline finished with Success
    12 days ago
    Total: 287s
    #527304
  • 🇮🇳India anjaliprasannan

    @divya.sejekan
    I have fixed the issue. Please review.

    Among your points
    1. Should get error only for AI provider field
    This is not valid as we discussed via slack.

    2. if removed AI from the active tool bar its not allowing to save.
    This I have fixed. Please review.

  • 🇮🇳India divya.sejekan

    hi @anjaliprasannan . I tried again with the updated patch. Still im not able to save after removing the AI tool from the Active Toolbar. Still getting the error.
    Steps followed :
    1. Enabled AI module
    2. Added AI ckeditor in active toolbar , Save
    3. Remove AI from active tool bar , save

    Moving to Need work . Please check the issue.

  • 🇮🇳India anjaliprasannan

    @Divya
    I have rechecked. The changes are reflecting properly. Attaching a working screencast.

    Please checkout to the branch using this git checkout '3530683-toolbar-in-ckeditor' command then do a git pull, git drush cr to review the changes.

  • 🇮🇳India sarvjeetsingh

    Hi!
    I've reviewed and tested MR ! following the steps provided in comment #8. Can confirm the fix is working as expected.

    Steps Followed:

    Enabled AI module and dependencies
    Added AI CKEditor button to active toolbar - saved successfully
    Removed AI button from active toolbar - now saves without validation errors (fixed)
    Verified that when AI button is present but no AI tools are selected, appropriate validation message is displayed

    can be moved to RTBC.

  • 🇮🇳India prashant.c Dharamshala

    Thanks, overall working well.

    A few suggestions left on the MR, please check.

  • Pipeline finished with Failed
    2 days ago
    Total: 385s
    #535812
  • Pipeline finished with Success
    2 days ago
    Total: 210s
    #535819
Production build 0.71.5 2024