Drupal is a registered trademark of Dries Buytaert
drupal 11.4.2 Update released for Drupal core (11.4.2)! drupal 11.4.1 Update released for Drupal core (11.4.1)! drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)!

sdc_embed

9 sites Security covered
View on drupal.org

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

Total releases
5
First release
May 2026
Latest release
1 month ago
Release cadence
1 day
Stability
60% stable

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