ck5_block_embed
No security coverage
The CKEditor5 Block Embed module allows administrators to easily embed blocks within the CKEditor5 interface:
- Content Blocks: These include both basic predefined blocks (such as basic blocks) and manually created custom blocks. Administrators can add these blocks directly from the CKEditor5 toolbar, making it easy to display dynamic or reusable content blocks across pages.
- View Blocks: These can either be default or manually created, with a block display mode that determines how the content is rendered. View blocks are ideal for displaying dynamic or templated content, such as user-generated data, and can be quickly inserted through the CKEditor5 interface.
- Region Blocks: Predefined layout regions (like headers, footers, or sidebars) from the active theme. The benefit of Region Blocks is the ability to place core, contrib, or custom-module blocks within these regions. Administrators can configure settings via a configuration form, allowing specific blocks to be placed in the region and available within the CKEditor5 interface. Additionally, "readonly" regions can be created, ensuring blocks are not shown on the front end, providing greater control over content placement and visibility.
This module makes it simple to manage and insert complex content and layout elements, providing flexibility and control over how content is displayed on the site.
Note: Avoid including any block within itself or creating a self-contained scenario. Embedding a block inside itself will create an infinite loop, which can break the editor and disrupt the page rendering.
Video Demo
View video
Support
Please post bug reports, feature requests and support requests to the CKEditor5 block embed module issue queue. If you met any problems with this module - feel free to create an issue.
Configuration and Demo
- Go to https://simplytest.me/project/ck5_block_embed.
- Click "Launch Sandbox".
- Install Drupal as normal.
- Enable "CKEditor5 block embed" module, and any optional modules you wish to try out.
- Go to /admin/config/content/formats/manage/full_html or any other editor where you wish to implement the functionality and drag the Embed Block icon on the active toolbar and checking the box next to the Embed blocks filter.
- Add/edit the content with editor, click on the "Embed blocks" icon where the Embed blocks feature lets you embed any content blocks, view blocks, and region blocks from the active theme.