diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php index 2e469daffeefb837b1474172e07069ccfb969c88..4959625a3683c9917de3e666cbbbcfb613e14bc2 100644 --- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php +++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php @@ -129,6 +129,9 @@ public function getButtons() { $button = function($name, $direction = 'ltr') { // In the markup below, we mostly use the name (which may include spaces), // but in one spot we use it as a CSS class, so strip spaces. + // Note: this uses str_replace() instead of Html::cleanCssIdentifier() + // because we must provide these class names exactly how CKEditor expects + // them in its library, which cleanCssIdentifier() does not do. $class_name = str_replace(' ', '', $name); return [ '#type' => 'inline_template',