When creating a new format on /admin/config/content/formats/add 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 BlazyAlter::isCkeditorApplicable() is trying to get the format of an editor that does not yet exist in the database.
The attached patch fixes this error.

CommentFileSizeAuthor
blazy-new_editor.patch692 bytesprudloff

Comments

prudloff created an issue. See original summary.

prudloff’s picture

Title: Error when addind a new text format » Error when adding a new text format

  • gausarts committed 4b16fd4 on 8.x-2.x authored by prudloff
    Issue #3133891 by prudloff: Error when adding a new text format
    
gausarts’s picture

Status: Needs review » Fixed

Committed. Thank you for contribution.

Status: Fixed » Closed (fixed)

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