Problem/Motivation
Getting this warning after creating a new Text format using CKEditor 5 that is not using IMCE:
Warning: Undefined array key "editor" in imce_editor_js_settings_alter() (line 146 of modules/contrib/imce/imce.module).
Steps to reproduce
- Create a new Text format here: /admin/config/content/formats
- Select CKEditor5 as the Text editor
- Do NOT add the IMCE button to the active toolbar and save
- For my set up, I have a custom block type with a Long Text field that is set to "Required" and uses the "Allowed formats" module to ensure that only the text format you want can be used on the field. And here's where you select the Text format recently created
- Create a new block with this type. The warning message will be triggered.
Proposed resolution
Check that $conf['editor'] exists before checking it's value (see patch attached).
| Comment | File | Size | Author |
|---|---|---|---|
| imce_editor_js_settings_alter_php_warning.patch | 674 bytes | jaydee1818 |
Issue fork imce-3442373
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 #2
abhishek_gupta1 commentedComment #4
abhishek_gupta1 commented@jaydee1818 , above patch fixed the issue and also I created MR. moving RTBC++
Comment #6
ufku commented