From 695c6a53ca48b894789624164a1f10da0b196b52 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Mon, 25 Mar 2024 10:29:28 +0000 Subject: [PATCH] Issue #3427200 by gedvan, Wim Leers: CKEditor 5: Javascript error when plugin settings has NULL value --- core/modules/ckeditor5/js/ckeditor5.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modules/ckeditor5/js/ckeditor5.js b/core/modules/ckeditor5/js/ckeditor5.js index 4d6f4d185517..bd5f3facdf9c 100644 --- a/core/modules/ckeditor5/js/ckeditor5.js +++ b/core/modules/ckeditor5/js/ckeditor5.js @@ -116,6 +116,10 @@ }); } + if (config === null) { + return null; + } + return Object.entries(config).reduce((processed, [key, value]) => { if (typeof value === 'object') { // Check for null values. -- GitLab