Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CKEditor5 Mentions

No security coverage Under active development 66 sites

This module adds a "mentions" feature to CKEditor 5. It allows users to type a special character, like "@," to trigger an autocomplete suggestion list, making it easier to reference items within your content.

CKEditor 5 Mentions lets editors mention users, content, taxonomy terms or any other entity by typing a marker such as @, # or + in CKEditor 5. A panel shows matching suggestions from your site as you type.

It uses the official CKEditor 5 Mention plugin shipped with Drupal core, so it needs no external library, CDN or CKEditor license.

Features

  • Multiple mention feeds, each with its own marker: e.g. @ for users, # for tags, + for articles.
  • Any entity type as a source, optionally limited to one bundle.
  • Views as a source: filter suggestions with a View, e.g. only users with the Editor role.
  • Static items such as @everyone or @team.
  • Per text format control of which feeds are available.
  • Works in every CKEditor 5 field: body, comments, custom text fields.
  • Optional links from mentions to the mentioned user, node or term, shown only to viewers who can access it.
  • Developer event when content with mentions is saved, including which mentions are new, so you can send notifications or build ECA models.
  • Permission based: only roles with Permission to mention users get suggestions, and only entities the user may see are suggested.

Try it on simplytest.me.

Post-installation

  1. Go to Configuration » Content authoring » Mention feeds (/admin/config/content/mention-feed). Three example feeds are included: @ users, # tags and + articles. Edit them or add your own.
  2. Go to Configuration » Content authoring » Text formats and editors, edit a CKEditor 5 format and enable feeds under Mentions Configuration.
  3. Grant Permission to mention users to the roles that should use mentions.
  4. Optional, to link mentions: enable Link mentions to the mentioned entity on the feed and the filter with the same name on the text format, after Limit allowed HTML tags.

Updating from an older release? Run database updates (drush updb).

For developers

Subscribe to MentionedEntityEvent::NAME (ckeditor5_mentions.entity_saved) to react to mentions:

public function onMention(MentionedEntityEvent $event): void {
  // Users mentioned for the first time in this content.
  foreach ($event->getMentionedEntities(TRUE, 'mention') as $user) {
    // Notify $user about $event->getEntity().
  }
}

Requirements

  • Drupal 9.4, 10 or 11 with the core CKEditor 5 module.
  • PHP 8.1 or later.

Recommended modules

  • Views (core), to use a View as a feed source.
  • ECA, to act on mentions without code, e.g. send notifications.

Similar projects

CKEditor Mentions also provides mentions. CKEditor 5 Mentions is built for CKEditor 5 only, on the Mention plugin in Drupal core. It adds multiple feeds with their own markers, any entity type filtered by bundle or View, static items, optional links and a save event.

Installation

composer require drupal/ckeditor5_mentions
drush en ckeditor5_mentions

Uninstallation

Disable the Link mentions to the mentioned entity filter on your text formats first, if enabled. Then:

drush pmu ckeditor5_mentions
composer remove drupal/ckeditor5_mentions

Support

Report bugs and request features in the issue queue.

Drupal 9–11 PHP 8.1

Ask your assistant about CKEditor5 Mentions

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

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Apr 2023
Latest release
1 week ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.2 Stable 9–11 PHP 8.1 Nov 20, 2026
2.0.0 Stable 9–11 Jan 24, 2025
2.0.x-dev Dev 9–11 Jan 24, 2025
1.1.0 Stable 9–10 Apr 6, 2023