Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

CKEditor ID Attributes

595 sites Security covered
View on drupal.org

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

Activity

Total releases
5
First release
Apr 2025
Latest release
2 weeks ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.1.1 Stable Jul 3, 2026
1.1.0 Stable Jul 3, 2026
1.0.2 Stable Sep 23, 2025
1.0.1 Stable May 9, 2025
1.0.0 Stable Apr 17, 2025