Notice: Undefined index: drupalExternalPlugins in insert_editor_js_settings_alter()

Created on 18 February 2022, over 2 years ago
Updated 6 February 2023, almost 2 years ago

Problem/Motivation

Cloned from #3210241: Notice: Undefined index: drupalExternalPlugins in insert_editor_js_settings_alter() (line 830 of modules/contrib/insert/insert.module). but shouldn't have been.

Other Text editors than CKeditor do not have drupalExternalPlugins array key (like the Guterberg editor), which is tested by Insert module. This is causing following warning message: Notice: Undefined index: drupalExternalPlugins in insert_editor_js_settings_alter() (line 830 of modules/contrib/insert/insert.module).

Steps to reproduce

In my case I was testing Test editor: Editor.md, but it seems that others have also similar problem:
Ace Code Editor https://www.drupal.org/project/ace_editor/issues/3030411
Gutenberg https://www.drupal.org/project/gutenberg/issues/3058842
When selected Editor.md, then on the field settings (type Text (formatted, long)) warning message is displayed.

Proposed resolution

In function insert_editor_js_settings_alter() test if this key exists 'drupalExternalPlugins'.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands Lendude Amsterdam

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024