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). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). 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). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (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.

This module provides a more flexible way to manage styles available in the CKEditor "Styles" dropdown. Site builders can add, edit, and delete styles through configuration entities, and themes can provide their own default styles. It also automatically adds the CSS classes defined for your styles to the allowed HTML filter, which Drupal core does not do.

This module allows specifying what styles are available in the CKEditor "Styles" dropdown selection using configuration entities. Site builders can add, edit, and delete individual styles. Because each style is a config entity, themes can provide their own default styles as well.

While Drupal core already provides an interface for managing these styles, it's embedded in the CKEditor configuration form. Using this module allows you users to manage the styles separately from the entire CKEditor and text format configuration.

This module also does something that core doesn't: It will dynamically add the specific CSS classes you define for your styles to the allowed HTML filter.

Usage

  1. Enable the module
  2. Edit one of your formats that uses CKEditor and make sure the "Styles" button is added to the toolbar
  3. Configure styles available via /admin/config/content/ckeditor-standalone-styles

Note that any styles you define from the main editor configuration page will be ignored.

Version Info

The 2.0.x version of this module is compatible with Drupal 9 and 10. For Drupal 10, it requires using the contrib CKEditor 4 module. It does not yet work with the CKEditor 5 module provided by Drupal 10 core.

Activity

Total releases
1
First release
Sep 2025
Latest release
10 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
2.1.0-beta3 Pre-release Sep 4, 2025