diff --git a/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php b/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php index 9cdd6f9b46efbce5855cd0922afa8b3a06bf4ecf..821f4cc3b1b9e9096528eaf1fc0a28bdaf54bfb2 100644 --- a/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php +++ b/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php @@ -261,7 +261,7 @@ public static function validatePair(EditorInterface $text_editor, FilterFormatIn */ public function buildConfigurationForm(array $form, FormStateInterface $form_state) { $editor = $form_state->get('editor'); - assert($editor instanceof Editor); + assert($editor instanceof EditorEntity); $language = $this->languageManager->getCurrentLanguage(); // When enabling CKEditor 5, generate sensible settings from the