Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CKEditor Autocomplete Link

No security coverage Under active development 13 sites

Part of the Ckeditor ecosystem · 110 projects

This module enhances the CKEditor link field by providing entity autocomplete suggestions for internal links, specifically for nodes. It allows users to easily link to content by typing and selecting from a list of available nodes, routes, or external URLs. The module is configurable for different text formats and aims to offer a lightweight and user-friendly alternative to other linking modules.

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 :

Drupal 8–10 · not 11

Ask your assistant about CKEditor Autocomplete Link

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • ckeditor Drupal core
  • editor Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Releases

Version Type Core PHP Release date
1.0.2 Stable 8–10 Mar 29, 2024
1.0.1 Stable 8–10 Feb 28, 2023