Error when adding a new text format

Created on 19 October 2022, over 1 year ago
Updated 6 August 2023, 11 months ago

Problem/Motivation

When creating a new format and selecting CKEditor as editor, the AJAX call that loads the CKEditor configuration form crashes with this error:

Cannot load the "filter_format" entity with NULL ID.

That happens because Tooltip::getConfig() is trying to get the format of an editor that does not yet exist in the database.

Steps to reproduce

  1. Browse to /admin/config/content/formats/add
  2. Select CKEditor as editor.
  3. The AJAX request fails.

Proposed resolution

The code should call isNew() on the editor before trying to get its format.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

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.69.0 2024