Conflict with other autocomplete ckeditor plugins

Created on 7 September 2020, over 4 years ago
Updated 11 May 2023, almost 2 years ago

Problem

The Linkit plugin conflicts with other ckeditor plugins using autocomplete. I encountered this while coding my own custom plugin.

Steps to reproduce

  1. Download for example the module "CKEditor Entity Link" (it uses an autocomplete field) : https://www.drupal.org/project/ckeditor_entity_link
  2. Add the plugin to your ckeditor toolbar
  3. Edit a rte field in a node :
    • add a link using the Linkit plugin
    • add a link using the CKEditor Entity Link plugin

And we get :

More precisely it happens on this part :

$autocomplete.autocomplete(autocomplete.options).each(function () {
          $(this).data('ui-autocomplete')._renderItem = autocomplete.options.renderItem;
        });

Somehow there's still some linkit html attributes in the .ui-autocomplete result list.

If anyone has a idea :)

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇫🇷France JulienVey

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024