Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CKEditor Templates Upgrade

Security covered Under active development

Part of the Ckeditor ecosystem · 110 projects

This module upgrades existing CKEditor templates created with ckeditor_templates_ui to work with the CKEditor 5 version of ckeditor_templates. It migrates your old templates and updates existing content to ensure that older template embeds are correctly recognized and wrapped with appropriate markup by CKEditor 5. This prevents issues when editing content that uses templates.

This module provides an upgrade path for ckeditor templates created using the
https://www.drupal.org/project/ckeditor_templates_ui module into the CKEditor 5
ready version of https://www.drupal.org/project/ckeditor_templates.

Warning: Never use this module without testing and creating a database backup in production, it will change existing content!

Make sure to read through the README before installing the module. In most cases, you will want to customize which templates are migrated and/or wrapped via the events dispatched by the module before installing it and processing content via cron.

Features

This module does the following two things upon installation:

  1. Migrates existing templates created via ckeditor_templates_ui module into the
    new entity type available in ckeditor_templates ckeditor5 version.
  2. Updates all existing content to wrap existing template embeds with wrapping
    markup that gets added around the template when embedding a template in
    ckeditor5, namely

<section class="ckeditor-template-wrapper"><div class="ckeditor-template-content"></div></section>

Why update existing content?

When upgrading a site with existing template embeds to ckeditor5, these existing embeds are not recognized by the ckeditor_templates module as templates when upcasting the markup into Ckeditor5's DOM.

That means they won't be wrapped with a ckeditor widget frame as new template embeds will. In some situation, this causes major difficulties when attempting to amend existing content. Imagine for example a column layout with multiple rows based on templates and an editor wanting to add new rows in the middle of existing rows. Without the ckeditor widget's ability to insert newlines, this becomes really cumbersome.

Ask your assistant about CKEditor Templates Upgrade

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 8–11 Sep 11, 2023