From 86bd3d12997f6937dab0cbd07aceecafccea8f30 Mon Sep 17 00:00:00 2001 From: Dave Long <dave@longwaveconsulting.com> Date: Fri, 12 Jan 2024 12:16:27 +0000 Subject: [PATCH] Issue #3263668 by omkar-pd, Wim Leers, hooroomoo: Re-enable inline form errors in assessActiveTextEditorAfterBuild function --- core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php b/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php index 03905f04f495..b12841651f81 100644 --- a/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php +++ b/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php @@ -524,14 +524,6 @@ public static function assessActiveTextEditorAfterBuild(array $element, FormStat $form_state->set('ckeditor5_is_active', $already_using_ckeditor5); $form_state->set('ckeditor5_is_selected', $form_state->getValue(['editor', 'editor']) === 'ckeditor5'); - // Disable inline form errors when using CKEditor 5 because it prevents - // useful error messages from vertical tabs from being visible to the user. - // @todo Remove this workaround in - // https://www.drupal.org/project/drupal/issues/3263668 - if ($form_state->get('ckeditor5_is_selected')) { - $element['#disable_inline_form_errors'] = TRUE; - } - return $element; } -- GitLab