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
- Install the module in the usual way, see installing contributed modules
- Enable the module
Configuration
- Go to the "Text formats and editors" page (
admin/config/content/formats) and select a text format. - Make sure the "Link" plugin is added in the CKEditor toolbar.
- In the "CKEditor plugin settings" section, click on "Drupal link".
- Enable the field "Enable CKEditor Autocomplete Link?".
- Select content types that will be used on the autocomplete field.
- Save, it's finished
Recommended modules
- 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
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Content display, Content editing experience
11 sites report using this module
- Created by martygraphie on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.




