Commit baacf9db authored by alexpott's avatar alexpott

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
......@@ -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(
......
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