Commit 65d7cc56 authored by alexpott's avatar alexpott

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

parent 2a954413
......@@ -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'),
......
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