CKEditor 5/Text Formats and Editors error

Created on 15 July 2024, 6 months ago
Updated 16 July 2024, 6 months ago

Problem/Motivation

I assume this issue started after the upgrade to 10.3.1, but I only noticed it today. In Text Formats and editors, when I edit a format, e.g. "Basic HMTL", that uses CKEditor 5, or change the Editor from "None" to "CKEditor", I get the following error when I click on Save:

* 'type' is not a supported key.
* 'auto' is not a supported key.
* 'block' is not a supported key.
* 'exclude_above' is not a supported key.

Any changes that were implemented are not saved.

When I use drush cedit to view filter.format.basic_html.yml I see the following reference to the above mentioned keys:

toc_filter:
id: toc_filter
provider: toc_filter
status: false
weight: 0
settings:
type: full
auto: top
block: 0
exclude_above: 1

However, removing one of the settings didn't change the error message.

Our site also seems to be suffering from the problem described in #3456088 which is compounding the issue.

🐛 Bug report
Status

Active

Version

2.0

Component
CKEditor 5 

Last updated 11 minutes ago

Created by

🇸🇦Saudi Arabia ishore

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

Comments & Activities

  • Issue created by @ishore
  • This has come up in prior reports. This one looks the same as 🐛 Can't enable the filter on the text format RTBC . Can you verify?

  • 🇸🇦Saudi Arabia ishore

    If I uninstall the TOC Filter module, I am then able to save the Basic HTML format. It does produce another error on saving (see below), but the format is saved. Maybe this ticket needs moving to TOC Filter?

    Warning: Undefined array key "status" in editor_form_filter_admin_format_submit() (line 257 of core/modules/editor/editor.module).
    editor_form_filter_admin_format_submit(Array, Object)
    call_user_func_array('editor_form_filter_admin_format_submit', Array) (Line: 129)
    Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
    Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
    Drupal\Core\Form\FormBuilder->processForm('filter_format_edit_form', Array, Object) (Line: 326)
    Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
    Drupal\Core\Controller\FormController->getContentResult(Object, Object)
    call_user_func_array(Array, Array) (Line: 123)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
    Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
    Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
    Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

  • 🇸🇦Saudi Arabia ishore

    Yes, can confirm this is the same issue as #3455894, and the patch fixed it.

Production build 0.71.5 2024