Demonstration autocomplete
Exemple de la page configuration du plugin ckeditor

This project is not covered by Drupal’s security advisory policy.

This module override the native CKEditor 4 link field by an entity autocomplete link field. You can insert internal and external links.

Currently, autocompletion supports only "node" entity (content types) (most common case). You can create an issue, if you need other entities

Features

  • You can configure the content types used by the autocomplete for each text format.
  • Autocomplete field, allows the user to fill in:
    • Node (displays title and identifier in the field entity autocomplete)
    • Internal route (displays path in the field)
    • External link (displays url in the field)
    • Token for the homepage (displays token <front> in the field)

Benefits

  • User has the same rendering as a entity_autocomplete field in content types.
  • Very light (3 files) and does not use custom javascript.
  • Less code, also says that upgrades, patches are easier to fix
  • It can be installed at any time on the project because the new field is only used as an input aid, but it is always
    the href field that is populated
  • Easy to configure, because all settings are grouped in the text editor interface.

Requirements

  • This module requires that the ckeditor module (core module) be activated
  • You must uninstall, other modules overloading the DrupalLink plugin class (Eg. Linkit)

Installation

  1. Install the module in the usual way, see installing contributed modules
  2. Enable the module

Configuration

  1. Go to the "Text formats and editors" page (admin/config/content/formats) and select a text format.
  2. Make sure the "Link" plugin is added in the CKEditor toolbar.
  3. In the "CKEditor plugin settings" section, click on "Drupal link".
  4. Enable the field "Enable CKEditor Autocomplete Link?".
  5. Select content types that will be used on the autocomplete field.
  6. Save, it's finished
  • I recommend you to install the pathologic module, then activate its filter
    which will transform the system paths of your nodes into url aliases and correct potential broken links within your
    pages
  • Module work with Editor Advanced Link

Comparison others modules

  • It is light compared to the linkit module which integrates a profile
    management and its own autocompletion system. Linkit is more complete, but it alters the rendering of the native
    autocompletion field. This can disturb some users when using it

  • CKEditor Entity Link adds a new type of plugin instead of
    overloading the native ckeditor link. It does not have a button to remove the relationship between the text and the
    link. And the proposed architecture relies on custom forms, which makes it more complicated to maintain in case of
    ckeditor evolution.

Roadmap :

Under reflection to support all types of entities.

Credits

Current maintainer: Marc-Antoine Marty

This project is sponsored by :
logo company ecedi

Supporting organizations: 

Project information

Releases