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 insert blocks

142 sites Security covered Drupal 10–11
View on drupal.org

This plugin for CKEditor 5 allows users to easily insert content blocks directly into the editor. It provides a menu to select blocks, including custom and view-based blocks, and offers options to add CSS classes and JavaScript libraries to the inserted blocks. The plugin also supports re-rendering blocks on cache clear or replacing them with AJAX for dynamic content.

CKEditor 5 plugin allow insert block with a single click, a menu appears, allowing you to select and insert any type of block, including custom module blocks, blocks from views, or content blocks.
The blocks can be select in configuration if not it will show all of block

  • Intuitive Block Selection: Easily choose from a variety of available blocks.
  • Add class: You can add class for block.
  • Add libraries: (Optional) Add custom libraries separated by ,

Select the filter to insert a block, this means that the block will be re-rendered every time you clear the cache (the text content in the ckeditor field does not change).

If you want to use ckeditor 5 filter for each block HTML, you need to

composer require symfony/dom-crawler

drupal 9 does not need it - it is in core drupal 9 not drupal 10 or 11.

it will replace all html block like it by drupal block
<div class="insert-block custom-class" data-block-id="block_id" data-libraries="module1/library1,module2/library2">whatever content block is inserted from ckeditor</div>

If you want to replace block by ajax you can add insert block librairy in your custom theme.

libraries:
  - ckeditor_insert_blocks/insert-block-ajax

It will search all class insert-block and data-block-id to replace updated content by ajax.
If you find this module valuable, consider supporting the developer by buy me a ☕

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
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 5
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.3 Stable 10–11 Jun 26, 2025
1.0.2 Stable 10–11 Jun 23, 2025
1.0.1 Stable 10–11 Dec 27, 2024
1.0.0 Stable 10–11 Dec 9, 2024
1.0.x-dev Dev 10–11 Nov 4, 2024