Drupal is a registered trademark of Dries Buytaert
Release: Captcha Keypad 2.0.1 Minor update available for module captcha_keypad (2.0.1). Release: Audit Chain 1.5.1 Minor update available for module audit_chain (1.5.1). Release: GraphQL Compose Codegen 1.1.1 Minor update available for module graphql_compose_codegen (1.1.1). Release: DKAN DCAT-US v3 Bridge 1.0.3 Minor update available for module dkan_dcatus3_bridge (1.0.3). Release: Delete Users CSV 8.x-1.1 Minor update available for module delete_users_csv (8.x-1.1). Release: Commerce EuPlatesc Payment Gateway 8.x-2.7 Minor update available for module commerce_euplatesc (8.x-2.7). Release: MCP Sentinel 2.13.0 Minor update available for module mcp_sentinel (2.13.0). Release: Myo Theme 1.0.8 Minor update available for theme myo (1.0.8). Module Revived: CKEditor Anchor Link 3.0.5 Module anchor_link updated after 6 months of inactivity (3.0.5). Usage Milestone: OpenTelemetry Module opentelemetry crossed 1,000 active installs.

This module provides a CKEditor button that allows content editors to embed Single Directory Components (SDCs) from your theme directly into rich text fields. It dynamically generates forms for SDC properties based on their schema, embeds them as placeholders, and renders the actual component with validation when the content is displayed.

A Drupal module that adds a CKEditor 5 toolbar button for embedding Single Directory Components (SDC) from the active theme directly into rich-text content.

Features

Out of the box, Drupal SDCs are something themers reach for from inside Twig templates. This module bridges that gap for content editors:

  • Discovers every SDC the active theme provides via the core plugin.manager.sdc service.
  • Adds an "Embed component" button to CKEditor 5.
  • Opens a modal where the editor picks a component and fills in its props (form fields are generated dynamically from the component's *.component.yml schema).
  • Stores the embed as a clean placeholder in the saved HTML.
  • A text filter renders the placeholder back into the real component (with full SDC schema validation, library attachment, cache metadata) on display.

Post-Installation

  • Edit a text format at Configuration → Content authoring → Text formats and editors (e.g. Full HTML).
  • Add the toolbar button: drag Embed component from "Available buttons" into the active toolbar.
  • Enable the filter: tick Embed Single Directory Components in the Enabled filters list. Place it after any filter that touches HTML (e.g. Limit allowed HTML tags).
  • Whitelist the placeholder element in the Limit Allowed HTML filter (the CKEditor plugin already declares this via the elements key in sdc_embed.ckeditor5.yml, so Drupal will offer to add it for you):
  • Grant the Use SDC Embed in CKEditor permission to roles that should see the button.
  • Optional — visit Configuration → Content authoring → SDC Embed settings to:
    • Restrict the editor to a subset of components.
    • Also expose components defined in modules (default: theme only).

Additional Requirements

There are no additional requirements.

Similar projects

Embedded Content: SDC

Activity

Tracked releases
5
Tracked since
May 2026
Latest release
2 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.1.1 Stable Jun 1, 2026
1.1.0 Stable Jun 1, 2026
1.x-dev Dev Jun 1, 2026
1.0.0 Stable May 27, 2026
1.0.x-dev Dev May 27, 2026