Commit 42a5ff97 authored by alexpott's avatar alexpott

Issue #2548723 by Wim Leers, cwells: Comment on or replace class name cleaning...

Issue #2548723 by Wim Leers, cwells: Comment on or replace class name cleaning in CKEditorPlugin/Internal::getButtons()
parent 31a65da0
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment