[CKEditor5] Conflict when using Linkit with CKEditor alongside Media field

Created on 22 March 2023, over 1 year ago
Updated 12 April 2023, over 1 year ago

Problem/Motivation

When we add CKEditor5 with Linkit enabled on a entity form and add a media field as well. We get errors adding the media to the field.

Steps to reproduce

- Enable CKEditor5
- Enable Linkit
- Add Linkit to the CKEditor5
- An content type with CKEditor5 field and Media entity field (can be image for example)
- Go to entity creation form
- Try adding the media through the media field.

Proposed resolution

I've traced the problem to core/drupal.autocomplete library.
Changing the library to the contrib module seems to solve the problem:

jquery_ui_autocomplete/autocomplete

But I'm not sure if we want to make this module dependent on jquery_ui_autocomplete module.

Attached is a patch in case someone needs a fix for now.

πŸ› Bug report
Status

Closed: works as designed

Version

6.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil igoragatti

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

Comments & Activities

Production build 0.71.5 2024