Drupal is a registered trademark of Dries Buytaert
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)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.15 Minor update available for module linkit (7.0.15). views_data_export 8.x-1.10 Minor update available for module views_data_export (8.x-1.10).

sdc_embed

No security coverage
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
1
First release
May 2026
Latest release
15 hours ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev May 27, 2026