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.

Issue fork tooltip-3316229

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prudloff created an issue. See original summary.

prudloff’s picture

Status: Active » Needs review
matthieuscarset’s picture

Status: Needs review » Fixed

Thank you for reporting this issue and providing a fix.

Please forgive me for the delay in replying.

It is now merged and will be shipped in the next release soon.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.