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). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

CKEditor Div Manager

2,974 sites Security covered
View on drupal.org

This module integrates a CKEditor plugin that allows users to group content blocks within a div container. You can specify styles and attributes for these div containers directly within the editor.

Introduction

This module integrates the Div Container Manager CKEditor plugin for Drupal 8/9.

The plugin adds the ability to group content blocks under a div element as a container, with styles and attributes optionally specified in a dialog.

Requirements

  • The 2.1.x branch uses ckeditor (core - deprecated)
  • The 3.0.x branch uses ckeditor5 (core)

Installation

Install via Composer (recommended)

If you use Composer to manage dependencies, edit composer.json as follows.

  • Run composer require --prefer-dist composer/installers to ensure you have the composer/installers package. This facilitates installation into directories other than vendor using Composer.
  • In composer.json, make sure the "installer-paths" section in "extras" has an entry for "type:drupal-library". For example:
    {
      "libraries/{$name}": ["type:drupal-library"]
    }
    
  • Run composer require 'ckeditor/div:4.10.1' to download the plugin.
  • Run composer require 'drupal/ckeditor_div_manager:^2.0' to download the CKEditor Div Manager module, and enable it as per usual.

Install Manually

  • Download the Div Container Manager CKEditor plugin.
  • Extract and place the plugin contents in the following directory:
    /libraries/ckeditor/plugins/div/.
  • Install the CKEditor Div Manager module as per usual.

Configuration

  • Go to 'Text formats and editors' (admin/config/content/formats).
  • Click 'Configure' for any text format using CKEditor as the text editor.
  • Configure your CKEditor toolbar to include the Div Container Manager button.
  • If 'Limit allowed HTML tags and correct faulty HTML' is enabled, the Allowed HTML tags need to be configured. At a minimum, the <div> tag needs to be allowed. Some fields in the plugin dialog require additional attributes to be allowed or they will be hidden. The full set is <div class id title>. Inline styles will not be allowed with this filter enabled.
  • Any classes or sets of classes defined in the editor's Styles dropdown for the div element will carry over to the Style dropdown in the plugin dialog.

Troubleshooting

  • This project only handles the bridge between Div Container Manager and Drupal. For support of the plugin itself, please use their project page.

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
1
Tracked since
Jul 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
3.0.0-alpha2 Pre-release 9–11 Jul 29, 2025