diff --git a/core/modules/ckeditor5/ckeditor5.module b/core/modules/ckeditor5/ckeditor5.module index f9ac42891c..a09014c719 100644 --- a/core/modules/ckeditor5/ckeditor5.module +++ b/core/modules/ckeditor5/ckeditor5.module @@ -655,7 +655,7 @@ function _ckeditor5_theme_css($theme = NULL): array { * Implements hook_entity_presave(). */ function ckeditor5_entity_presave(EntityInterface $entity) { - if ($entity instanceof Editor) { + if ($entity instanceof Editor && $entity->getEditor() === 'ckeditor5') { $settings = $entity->getSettings(); if (in_array('codeBlock', $settings['toolbar']['items'], TRUE) && !isset($settings['plugins']['ckeditor5_codeBlock'])) { // @see \Drupal\ckeditor5\Plugin\CKEditor5Plugin\CodeBlock::defaultConfiguration()