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

Issue #2306515 by lokeoke | yukare: Fixed HTML double-escaping in CKEditor...

Issue #2306515 by lokeoke | yukare: Fixed HTML double-escaping in CKEditor toolbar configuration UI.
parent 16a429ec
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
*/
use Drupal\Core\Template\Attribute;
use Drupal\Component\Utility\SafeMarkup;
/**
* Prepares variables for CKEditor settings toolbar templates.
......@@ -65,10 +66,10 @@ function template_preprocess_ckeditor_settings_toolbar(&$variables) {
$build_button_item = function($button, $rtl) {
// Value of the button item.
if (isset($button['image_alternative' . $rtl])) {
$value = $button['image_alternative' . $rtl];
$value = SafeMarkup::set($button['image_alternative' . $rtl]);
}
elseif (isset($button['image_alternative'])) {
$value = $button['image_alternative'];
$value = SafeMarkup::set($button['image_alternative']);
}
elseif (isset($button['image'])) {
$value = array(
......
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