ViewModal is not defined error and CKEditor toolbar disappears

Created on 12 August 2025, 2 months ago

Problem/Motivation

If a user doesn't have the use ai ckeditor permission, but does have permission to use an input/editor format it is configured for, the CKEditor toolbar disappears for that input format, and a JS error is logged:

 ReferenceError: ViewModel is not defined
    at d.init (aickeditor.js

Steps to reproduce (required for bugs, but not feature requests)

  1. Enable CKEditor AI
  2. Configure the AI assistant for an input format that the user will have access to
  3. Do not grant the use ai ckeditor permission to the user's role
  4. Visit a node add or edit page, select the above input format, and note the JS error and the toolbar is not present.
  5. Proposed resolution

    Better error handling in the JS.

    Remaining tasks

    Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

🐛 Bug report
Status

Active

Version

1.1

Component

...to be triaged

Created by

🇺🇸United States jhedstrom Portland, OR

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

Comments & Activities

Production build 0.71.5 2024