CKEditor Div Manager
Categories
Component ID
2821859
Component name
CKEditor Div Manager
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Introduction
This module integrates the Div Container Manager CKEditor plugin for Drupal 8.
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
This module requires the following modules:
- CKEditor (Core)
Installation
- Download the Div Container Manager CKEditor plugin.
- Copy the plugin to the libraries directory. If libraries doesn't exist in the site root, create it. The plugin should be in
/libraries/div. - Download and 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.
