CKEditor 5 Compatibility

Created on 20 November 2022, about 2 years ago
Updated 17 November 2023, about 1 year ago

This module provides an integration layer of a standalone CKEditor 4 plugin. As of this writing, there is no CKEditor 5 equivalent plugin, and nothing in the issue queue indicates work is underway or even planned. As such, there are 3 possible courses of action:

Options

1. Create an in-house CKEditor 5 plugin from the ground up.
2. Switch to using https://www.drupal.org/project/ckeditor5_embedded_content (which would require creating a plugin implementation that renders a div).
3. Approximate the functionality by using CKEditor's "Source" mode + the "Styles" dropdown.

1. In-house plugin

The only option for true feature equivalence would be to create a in-house CKEditor 5 plugin. There are some good models in CKEditor 5 documentation for this:

1. The "Abbreviation Plugin" tutorial provides an example of a toolbar item that provides a balloon for user input and inserts HTML. Demo here: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/plugins/abbr...
2. The "Block widget" tutorial demonstrates inserting more predefined HTML. Demo here: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/tutorials/im...

2. Replacement: CKEditor5 Embedded Content

https://www.drupal.org/project/ckeditor5_embedded_content

3. Approximated functionality

For others coming here, this Drupal module's functionality could be approximated without a dedicated plugin by having content editors insert a plain div tag using the CKEditor "source" mode, and then using the "Styles" dropdown to apply a predefined CSS class to that div.

Note that CKEditor 5 compatibility should be considered distinct from Drupal 10 compatibility, which is a separate issue ( 🌱 Create new version to D10 Closed: duplicate ), and can be completed on its own, with the caveat being that sites would need to use the contrib-provided CKEditor 4 module with Drupal 10: https://www.drupal.org/project/ckeditor

Feature request
Status

Fixed

Version

2.1

Component

Code

Created by

🇭🇺Hungary kepesv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024