Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

CKEditor 5 Webform Embed

4 sites No security coverage
View on drupal.org

This module provides a CKEditor 5 widget to easily embed Webforms directly within the content editor. It allows users to browse, select, and replace webforms using a user-friendly interface, displaying clear placeholders before saving.

The CKEditor 5 Webform Embed module streamlines the process of placing complex forms into your content. Instead of managing shortcodes or complex HTML snippets, this module provides a native CKEditor 5 widget that allows administrators to browse, select, and embed Webforms directly within the editor interface. It bridges the gap between powerful form functionality and a user-friendly authoring experience.

Features

  • Native Widget Integration: Provides a visual "Webform" block within the
    editor to easily move and manage embedded forms.
  • AJAX Modal Browser: A user-friendly selection interface to browse
    and search for active webforms without leaving the content page.
  • Live Editor Placeholders: Provides a clear visual representation of where the form will appear, ensuring editors understand the layout before hitting save.
  • Double-Click Editing: Quickly swap out one form for another by double-clicking the widget to re-open the selection modal.
  • Secure Rendering: Uses a dedicated server-side filter to transform semantic tags into fully functional, accessible Drupal Webforms on the frontend.

Installation

Install as you would any contributed Drupal module. See Installing Drupal Modules.

composer require drupal/ck5_webform

Enable the module using Drush:

drush en ck5_webform

Post-Installation

After installation, you must configure your Text Formats to enable the embedding capabilities:

  1. Go to Configuration » Content authoring » Text formats and editors.
  2. Edit your preferred format (e.g., Basic HTML or Full HTML).
  3. Drag the Embed Webform icon into the active toolbar.
  4. Enable the CKEditor 5 Webform Embed filter in the "Enabled filters" section.
    Note: This filter is responsible for rendering the form on the public site.
  5. If using Limit allowed HTML tags, ensure <drupal-webform data-webform-id> is added to the allowed tags list.

Additional Requirements

This module requires the following:

  • CKEditor 5 (Core module in Drupal 10/11)
  • Webform (Contributed module)

Similar projects

Supporting this Module

If you find this module useful, please consider reporting bugs or submitting feature requests in the issue queue. Your feedback helps make this tool better for the entire community!

Activity

Total releases
2
First release
Jan 2026
Latest release
5 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Jan 26, 2026
1.0.x-dev Dev Jan 26, 2026