Skip to content
Snippets Groups Projects
Commit 42a5ff97 authored by Alex Pott's avatar Alex Pott
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment