Skip to content

CKEditor field in Category Set fails to load in the CMS due to JS error #435

@JazzMusic131

Description

@JazzMusic131

Description

When trying to add a CKEditor field to a Category set, with a Link type added to the toolbar, the field does not load in the CMS during content entry due to the following JS error:

Uncaught (in promise) TypeError: this._linkUI._createToolbarLinkButton is not a function
    at n.value (linkui.js:57:20)
    at n.value (linkui.js:41:10)

If the Link field is removed from the CKEditor config's toolbar, the error is not present and the field loads as expected in the CMS.

Steps to reproduce

  1. Create a new category set in Craft
  2. Add a CKEditor field with a Simple config that includes the Link type in the toolbar
  3. Add the CKEditor field to the category set's field layout
  4. Create or edit a category in the category set in the CMS

Additional info

  • Craft version: 5.7.8.2
  • PHP version: 8.2
  • Database driver & version: MySQL 8.0 (DDEV)
  • Plugins & versions: CKEditor version 4.9.0

Image
Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions