Problem/Motivation
After updating to 1.4.2 in Drupal 11.2.8, I get the following error on the node edit form:
Warning: Undefined array key "editor" in ckeditor5_plugin_pack_layout_table_editor_js_settings_alter() (line 37 of modules/contrib/ckeditor5_plugin_pack/modules/ckeditor5_plugin_pack_layout_table/ckeditor5_plugin_pack_layout_table.module).
Issue fork ckeditor5_plugin_pack-3561356
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
Comment #4
salmonek commentedHi mydot
I wasn't able to reproduce the issue - not sure how to configure a text format to have a js settings without an editor set. So I couldn't verify the fix.
The warning message is quite straightforward though and the published patch should fix the issue. I'd appreciate a feedback on that.
Comment #5
knyshuk.vova commentedHi salmonek,
I was able to reproduce the above error using both v.1.4.2 and v.1.5.0 of the module and D11.3.2, on node edit form.
In
$settings["editor"]["formats"]there are filtered, wysiwyg, full_html elements, and webform_default.Other elements (filtered, wysiwyg, full_html) have "editor" key as expected.
The above patch is not applicable to v.1.5.0.
I can confirm that the above patch (from MR) applicable to v.1.4.2 and the warning message is NOT displayed anymore.
Comment #9
salmonek commentedPushed a 1.5.x compatible patch.
I tried to reproduce it, but somehow my webform_default had assigned ckeditor as editor.
Deliberately unsetting the array key brought the issue and the fix removed the message.
Comment #10
albert.garcia commentedApplied #7 to Drupal 11.3.6 on version 1.5.1 of the module with php 8.4 and it works.
Comment #11
knyshuk.vova commentedAs of #10, moved to reviewed
Comment #15
salmonek commentedReleased in 1.5.3