ckeditor 5 crashes

Created on 21 March 2023, over 1 year ago

Problem/Motivation

CKEditor 5 crashes with "The website encountered an unexpected error. Please try again later.
TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 833 of modules/contrib/insert/insert.module)."

Steps to reproduce

Updated site (9.5.4->9.5.5 w composer) . Enabled CKE5. Uninstalled CKE(old). Configuration->Text formats->Full HTML (or any)->Configure->Text Editor->CKE5 -> -> (any node)->Edit ->bang...

Workaround:
Composer ->composer require 'drupal/ckeditor:^1.0' . Configuration->Text formats->Full HTML->Text editor->CKEditor = works as expected.

PHP 8.1, what other information could be needed?

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: duplicate

Version

9.5

Component
EditorΒ  β†’

Last updated about 7 hours ago

Created by

πŸ‡ͺπŸ‡ͺEstonia veskimees

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

Comments & Activities

  • Issue created by @veskimees
  • Status changed to Closed: duplicate over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    I don't think the insert module works with CKEditor 5.

    Precisely the same error was reported in πŸ› Editing pages returns an array_keys error Closed: works as designed .

  • Status changed to Active over 1 year ago
  • πŸ‡ͺπŸ‡ͺEstonia veskimees

    Yes it is. Sorry I couldn't find it and made a duplicate. But in my case, it means that I will not use CKE5 until its possible some way or until support for the insert module is created. Quite a many old sites depend on it exclusively.

  • Status changed to Closed: duplicate over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    I know. I think we use it too.

Production build 0.69.0 2024