Module Description
This module allows content editors to insert rich and styled pieces of content into CKEditor5 without having to give them HTML editing permissions.

View Demo

Features
* Insert themed content in Ckeditor5 using Drupal plugins
* Rendered result is shown directly in the CKEditor (thank you Upcasting)
* Theming is disconnected from user input and can be updated independently.
* Content doesn't live outside the text field.

How to enable
* Install using composer require drupal/ckeditor5_embedded_content
* Enable ckeditor5_embedded_content module.
* Enable Ckeditor5 for an editor and drag the 'Embedded Content' icon into the toolbar.
* Enable the 'embedded content' filter
* Create an 'EmbeddedContent' plugin or enable the examples module.
* Use the button on the toolbar

How it works
* Similar to core's Media implementation, A new HTML component < embedded-content > is inserted into the textfield, with 'data-plugin-id' and 'data-plugin-config' attributes.
* A Ckeditor5 plugin upcasts it to rendered content using the ::build() method on the EmbeddedContent plugin
* A filter plugin applies the same method for the rendered result.
* Contrary to Media or Entity embed, there is no reference to data stored elsewhere. All the configuration is stored in the same text field.

Why use it? This module might be suitable for those who want to:


* Embed call to action buttons with icons, attributes for data tracking, different styling options etc.
* Create embed code for social media, such as twitter, instagram.
* Embed highlighted sections in an article.

Caveat: multiple modals Drupal cannot deal with multiple modals. This will become an issue if you use this text filter in a modal, or you open a modal from the Embedded Content plugin form (Say for selecting a media entity with the Media Browser). To make this work please apply the latest patches mentioned in:


* drupal/core: see https://www.drupal.org/project/drupal/issues/2741877
* drupal/ckeditor5_embedded_content: see https://www.drupal.org/project/ckeditor5_embedded_content/issues/3306230

Project Usage
240
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module solves the problem of allowing content editors to insert rich and styled pieces of content into CKEditor5 without giving them HTML editing permissions.
Data Name
ckeditor5_embedded_content

OPENAI CHATBOT

OPENAI CHATBOT

12:24:48
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.