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

  1. Create a new Text format here: /admin/config/content/formats
  2. Select CKEditor5 as the Text editor
  3. Do NOT add the IMCE button to the active toolbar and save
  4. 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
  5. 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).

Issue fork imce-3442373

Command icon 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

jaydee1818 created an issue. See original summary.

abhishek_gupta1’s picture

Assigned: Unassigned » abhishek_gupta1

abhishek_gupta1’s picture

Assigned: abhishek_gupta1 » Unassigned
Status: Active » Reviewed & tested by the community

@jaydee1818 , above patch fixed the issue and also I created MR. moving RTBC++

  • ufku committed 7ba471a7 on 3.x
    Issue #3442373 by jaydee1818: Fix undefined editor warning
    
ufku’s picture

Version: 3.0.12 » 3.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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