Unable to save text format

Created on 23 September 2023, about 1 year ago

Problem/Motivation

When submitting the config form for a text format I get the following error:

AssertionError: Schema errors: Array ( [editor.editor.id_does_not_matter:settings.plugins.ckeditor5_mentions_mention.dropdown_limit] => variable type is string but applied schema class is Drupal\Core\TypedData\Plugin\DataType\IntegerData [editor.editor.id_does_not_matter:settings.plugins.ckeditor5_mentions_mention.mention_feeds_enabled.select] => variable type is integer but applied schema class is Drupal\Core\TypedData\Plugin\DataType\StringData ) in assert() (line 729 of core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php).

Steps to reproduce

Enable the module, navigate to a text format and click save.

Proposed resolution

Fix the values saved in Mention::submitConfigurationForm to match the schema.

πŸ› Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States zrpnr UTC-7

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

Comments & Activities

  • Issue created by @zrpnr
  • @zrpnr opened merge request.
  • Status changed to Needs review about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States zrpnr UTC-7

    Added an MR to cast the values on submit.

Production build 0.71.5 2024