Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

CKEditor ID Attributes

581 sites Security covered Drupal 9–11
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

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
5
Tracked since
Apr 2025
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core 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