Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CKEditor ID Attributes

Security covered Maintenance fixes only 772 sites

Part of the Ckeditor ecosystem · 110 projects

This module adds a toolbar button to CKEditor 5, allowing users to easily add ID attributes to elements without needing to edit the HTML source. Simply select an element, click the button, and enter the desired ID.

If you ever tried to add ID attributes (for example for anchor links) in CKEditor5 and realized you'll have to edit the HTML in source editing mode to do that, this module is for you.

Features

This module provides a new toolbar button that will open up a textfield which you can enter your ID attribute in. So in order to add an ID attribute to an element in your CKEditor content, simply move the pointer to the element or select it then click the button and enter the ID. And voilà your element will get an ID attribute.

What this module doesn't do yet:

  • There is no checking if the ID you enter/add to an element is unique
  • ID attributes can't be added to some elements with nested elements. For example if you move the pointer to a list item (<li>) element but you want to apply the ID to the <ul>, the ID is added to the
  • element currently.

Post-Installation

In order touse the new ID attributes toolbar button, follow these steps after adding it as usual via composer:

  1. Enable the module via the UI or via Drush.
  2. Head to /admin/config/content/formats, select the text format you want to enable the ID attributes button in and edit the format.
  3. On the text format edit form, find the ID attributes toolbar button and add it to the toolbar, save the textformat./li>
  4. Edit or create a content with a field using that textformat and you can now use the ID attributes button
Drupal 9–11

Ask your assistant about CKEditor ID Attributes

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

  • ckeditor5 Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Aug 2023
Latest release
3 months ago
Releases (12 mo)
2 ▼ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.1.1 Stable 9–11 Jul 3, 2026
1.1.0 Stable 9–11 Jul 3, 2026
1.0.2 Stable 9–11 Sep 23, 2025
1.0.1 Stable 9–11 May 9, 2025
1.0.0 Stable 9–11 Apr 17, 2025
1.0.x-dev Dev 9–11 Aug 2, 2023