This project integrates the CKEditor IndentBlock plugin with the CKEditor or CKEditor5 module in Drupal core.
The IndentBlock plugin adds the functionality of indenting text paragraphs using CKEditor. The plugin doesn't come with its own buttons, but uses the same buttons as the built-in Indent plugin which provides the functionality of increasing/decreasing the indentation of list items. The configuration allows to enable/disable the IndentBlock plugin for each text format individually.
Requires modules
CKEditor|CKEditor5 module (core)
Dependency on Libraries module removed from 8.x-1.0-beta2 and up.
Installation (CK5)
All ck5 dependencies are part of Drupal core. No need to download anything extra! Install per normal in the Drupal administration Extend menu.
Installation (only applies to CKEditor, not CK5)
- Download the plugin from http://ckeditor.com/addon/indentblock
- Drupal 9.3.x: Indent Block - Version 4.17.1
- Drupal 9.2.x: Indent Block - Version 4.17.1
- Drupal 9.1.x: Indent Block - Version 4.15.1
- Drupal 9.0.x: Indent Block - Version 4.14.1
- Drupal 8.9.x: Indent Block - Version 4.14.1
- Drupal 8.8.x: Indent Block - Version 4.14.0
- Drupal 8.7.x: Indent Block - Version 4.14.0
- Drupal 8.6.x: Indent Block - Version 4.10.1
- Drupal 8.5.x: Indent Block - Version 4.8.0
- Drupal 8.4.x: Indent Block - Version 4.7.3
- Drupal 8.3.x: Indent Block - Version 4.6.2
- Unzip the plugin and place it into one of the following libraries paths:
- Multisite, individual domain:
<drupal_root>/sites/<domain.tld>/libraries/indentblock/plugin.js - Single site or multisite, all domains:
<drupal_root>/libraries/indentblock/plugin.js - CKEditor plugin standard:
<drupal_root>/libraries/ckeditor/plugins/indentblock/plugin.js - Installation profile:
<drupal_root>/profiles/<profile-name>/libraries/indentblock/plugin.js
If the plugin is installed at more than one libraries path, the priority is according to this list.
- Multisite, individual domain:
- Enable CKEditor IndentBlock module in the Drupal administration Extend menu.
Adding paragraph indentation to a text format
- Go to menu Configuration=>Text formats and editors.
- Click on the Configuration button of the text format (i.e. Basic HTML).
- If not already in the toolbar, drag the buttons with the title tags indent and outdent into it, which enables the built-in Indent plugin for lists.
- Open the vertical tab Indent Block and make sure the plugin is enabled. Should the checkbox be disabled, the IndentBlock plugin has not been found in any of the above listed libraries paths.
- Make sure, the tag
<p class>
is added to the field Allowed HTM tags, otherwise the buttons will not become active for paragraphs despite the IndentBlock plugin being enabled.
Project information
- Module categories: Content editing experience
- 5,879 sites report using this module
- Created by meichr on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 8.x-1.x-dev updated 20 Nov 2024 at 19:59 UTC