Type error in DomApplyStyles plugin when using CKEditor5

Created on 25 October 2023, 8 months ago
Updated 29 November 2023, 7 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.69.0 2024