Problem/Motivation

When i visit a block to edit or go to a format configuration page we get the following warning.

Warning: Undefined array key "max_size" in Drupal\ckeditor_uploadimage\Plugin\CKEditorPlugin\DrupalUploadImage->getConfig() (line 92 of ckeditor_uploadimage/src/Plugin/CKEditorPlugin/DrupalUploadImage.php).

The issue is caused because the plugin is not enabled and core remove the configuration from the yml file on export.

Steps to reproduce

  • Go to /admin/config/content/formats/manage/
  • Go to /admin/content/block/

Proposed resolution

Add extra checks to see if the setting is defined.

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

p-neyens created an issue. See original summary.

p-neyens’s picture

p-neyens’s picture

p-neyens’s picture

p-neyens’s picture

Title: Undefined array key "max_size" when using the format "flexible_html" » Undefined array key "max_size" when using the format "<format>"
p-neyens’s picture

Issue summary: View changes
p-neyens’s picture

Issue summary: View changes