Skip to main content
drupalreleases
Release: Drupal 11.4.9 — Update released for Drupal core (11.4.9)! Release: Better Exposed Filters 7.2.0 — Minor update available for module better_exposed_filters (7.2.0). Release: Bootstrap 8.x-3.43 — Minor update available for theme bootstrap (8.x-3.43). Release: Layout Paragraphs 2.1.5 — Minor update available for module layout_paragraphs (2.1.5). Release: Layout Paragraphs 3.0.0 — Major update available for module layout_paragraphs (3.0.0). Release: Book 3.0.8 — Minor update available for module book (3.0.8). Release: Tagify 2.0.5 — Minor update available for module tagify (2.0.5). Release: Editoria11y Accessibility Checker 3.0.11 — Minor update available for module editoria11y (3.0.11). Module Revived: @font-your-face 4.3.0 — Module fontyourface updated after 7 months of inactivity (4.3.0). Security Coverage: Open Y Branch Selector — Module openy_branch_selector now has official Drupal security advisory coverage.

Single directory component Embed

17 sites Security covered Drupal 11 · not 10 PHP >=8.2

Part of the SDC ecosystem · 21 projects

View on drupal.org

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

Depends on

Dependencies of the latest stable release

  • ckeditor5 Drupal core
  • editor Drupal core
  • filter Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
May 2026
Latest release
3 weeks ago
Releases (12 mo)
6 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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