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

Issue #2307125 followup by longwave: Fixed HTML double-escaping in EditorImageDialog.

parent 2a954413
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
......@@ -8,7 +8,6 @@
namespace Drupal\editor\Form;
use Drupal\Component\Utility\Bytes;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\filter\Entity\FilterFormat;
......@@ -115,10 +114,13 @@ public function buildForm(array $form, FormStateInterface $form_state, FilterFor
'#maxlength' => 2048,
);
$form['dimensions'] = array(
'#type' => 'item',
'#type' => 'fieldset',
'#title' => $this->t('Image size'),
'#field_prefix' => SafeMarkup::set('<div class="container-inline">'),
'#field_suffix' => SafeMarkup::set('</div>'),
'#attributes' => array('class' => array(
'container-inline',
'fieldgroup',
'form-composite',
)),
);
$form['dimensions']['width'] = array(
'#title' => $this->t('Width'),
......
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