Commit 9e2450bb authored by alexpott's avatar alexpott

Issue #2519862 by mErilainen, kattekrab, LewisNyman, Wim Leers, DuaelFr,...

Issue #2519862 by mErilainen, kattekrab, LewisNyman, Wim Leers, DuaelFr, Bojhan, eliza411, ivanstegic, lunk_rat, nickrosencrans, stpaultim, Mark LaCroix, webchick: Remove the width/height inputs from EditorImageDialog
parent 968bc414
...@@ -153,41 +153,6 @@ public function buildForm(array $form, FormStateInterface $form_state, FilterFor ...@@ -153,41 +153,6 @@ public function buildForm(array $form, FormStateInterface $form_state, FilterFor
'#default_value' => $alt, '#default_value' => $alt,
'#maxlength' => 2048, '#maxlength' => 2048,
); );
$form['dimensions'] = array(
'#type' => 'fieldset',
'#title' => $this->t('Image size'),
'#attributes' => array('class' => array(
'container-inline',
'fieldgroup',
'form-composite',
)),
);
$form['dimensions']['width'] = array(
'#title' => $this->t('Width'),
'#title_display' => 'invisible',
'#type' => 'number',
'#default_value' => isset($image_element['width']) ? $image_element['width'] : '',
'#size' => 8,
'#maxlength' => 8,
'#min' => 1,
'#max' => 99999,
'#placeholder' => $this->t('width'),
'#field_suffix' => ' × ',
'#parents' => array('attributes', 'width'),
);
$form['dimensions']['height'] = array(
'#title' => $this->t('Height'),
'#title_display' => 'invisible',
'#type' => 'number',
'#default_value' => isset($image_element['height']) ? $image_element['height'] : '',
'#size' => 8,
'#maxlength' => 8,
'#min' => 1,
'#max' => 99999,
'#placeholder' => $this->t('height'),
'#field_suffix' => $this->t('pixels'),
'#parents' => array('attributes', 'height'),
);
// When Drupal core's filter_align is being used, the text editor may // When Drupal core's filter_align is being used, the text editor may
// offer the ability to change the alignment. // offer the ability to change the alignment.
......
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