[Style] Style::parseStylesFormValue() fails on lines without a pipe

Created on 14 September 2022, about 2 years ago
Updated 20 December 2023, 10 months ago

Steps to reproduce:

  1. Open configuration page for some text format, i.e. Full HTML
  2. Drag and drop Style button to active toolbar
  3. Select Style tab under CKEditor5 plugin settings
  4. Put wrong value to the Styles textarea, i.e. "example".
  5. Sumbit the form

The following error message appears.

Warning: Undefined array key 1 in Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style::parseStylesFormValue() (line 117 of core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Style.php).

🐛 Bug report
Status

Needs work

Version

10.0

Component
CKEditor 5 

Last updated 3 days ago

Created by

🇷🇺Russia Chi

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