Commit 032757ab authored by alexpott's avatar alexpott

Issue #2309175 by Wim Leers: Fixed HTML double-escaping in Text Editor image...

Issue #2309175 by Wim Leers: Fixed HTML double-escaping in Text Editor image settings configuration UI.
parent 4e847383
......@@ -5,8 +5,8 @@
* Administration functions for editor.module.
*/
use Drupal\Component\Utility\SafeMarkup;
use Drupal\editor\Entity\Editor;
use Drupal\Component\Utility\NestedArray;
/**
* Subform constructor to configure the text editor's image upload settings.
......@@ -95,8 +95,8 @@ function editor_image_upload_settings_form(Editor $editor) {
$form['max_dimensions'] = array(
'#type' => 'item',
'#title' => t('Maximum dimensions'),
'#field_prefix' => '<div class="container-inline clearfix">',
'#field_suffix' => '</div>',
'#field_prefix' => SafeMarkup::set('<div class="container-inline clearfix">'),
'#field_suffix' => SafeMarkup::set('</div>'),
'#description' => t('Images larger than these dimensions will be scaled down.'),
'#states' => $show_if_image_uploads_enabled,
);
......
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