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

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
* Administration functions for editor.module. * Administration functions for editor.module.
*/ */
use Drupal\Component\Utility\SafeMarkup;
use Drupal\editor\Entity\Editor; use Drupal\editor\Entity\Editor;
use Drupal\Component\Utility\NestedArray;
/** /**
* Subform constructor to configure the text editor's image upload settings. * Subform constructor to configure the text editor's image upload settings.
...@@ -95,8 +95,8 @@ function editor_image_upload_settings_form(Editor $editor) { ...@@ -95,8 +95,8 @@ function editor_image_upload_settings_form(Editor $editor) {
$form['max_dimensions'] = array( $form['max_dimensions'] = array(
'#type' => 'item', '#type' => 'item',
'#title' => t('Maximum dimensions'), '#title' => t('Maximum dimensions'),
'#field_prefix' => '<div class="container-inline clearfix">', '#field_prefix' => SafeMarkup::set('<div class="container-inline clearfix">'),
'#field_suffix' => '</div>', '#field_suffix' => SafeMarkup::set('</div>'),
'#description' => t('Images larger than these dimensions will be scaled down.'), '#description' => t('Images larger than these dimensions will be scaled down.'),
'#states' => $show_if_image_uploads_enabled, '#states' => $show_if_image_uploads_enabled,
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment