Type error in DomApplyStyles plugin when using CKEditor5

Created on 25 October 2023, about 1 year ago
Updated 29 November 2023, 12 months ago

Problem/Motivation

The dom_apply_styles plugin is a rather obscure process plugin in Migrate Plus which replaces DOM elements based on style rules from an editor configuration.

After updating all text formats to CKEditor5, we noticed that the plugin could no longer process the updated style rules. The result is a "TypeError: explode(): Argument #2 ($string) must be of type string, null given" when constructing the plugin.

Steps to reproduce

  1. Configure a migration of a body field as specified in the DomApplyStyles documentation.
  2. Create a text format full_html using CkEditor 5.
  3. Add an entry "em.italic|Italic" under "Styles" in the CKEditor 5 plugin settings.
  4. Start migration of any content.

Proposed resolution

As long as both versions of CKEditor are used, style rules should be parsed depending on the configured editor.

🐛 Bug report
Status

Fixed

Version

6.0

Component

Plugins

Created by

🇩🇪Germany rob_pr

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024