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

Issue #2297681 by cilefen, Wim Leers, cs_shadow | Charles Belov: Added Make...

Issue #2297681 by cilefen, Wim Leers, cs_shadow | Charles Belov: Added Make the "alt" attribute required in EditorImageDialog.
parent 045d3ed9
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
......@@ -96,6 +96,7 @@ public function buildForm(array $form, array &$form_state, FilterFormat $filter_
$form['attributes']['alt'] = array(
'#title' => $this->t('Alternative text'),
'#type' => 'textfield',
'#required' => TRUE,
'#default_value' => isset($image_element['alt']) ? $image_element['alt'] : '',
'#maxlength' => 2048,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment