summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-09-08 14:18:31 (GMT)
committerAlex Pott2014-09-08 14:18:31 (GMT)
commitf7532d7bf2f57fe41a131cf4243db891bb192c9a (patch)
treec616c5def05ee5235836622fa3472dc0390463a2
parent5e6c455ec6069ce680063f01574ee5086d18a1d4 (diff)
Issue #2320111 by Wim Leers | mparker17: Better help text for the "Alternative text" field in the Text Editor image dialog.
-rw-r--r--core/modules/editor/src/Form/EditorImageDialog.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/editor/src/Form/EditorImageDialog.php b/core/modules/editor/src/Form/EditorImageDialog.php
index 8193cb6..ddcebb3 100644
--- a/core/modules/editor/src/Form/EditorImageDialog.php
+++ b/core/modules/editor/src/Form/EditorImageDialog.php
@@ -108,6 +108,7 @@ class EditorImageDialog extends FormBase {
}
$form['attributes']['alt'] = array(
'#title' => $this->t('Alternative text'),
+ '#placeholder' => $this->t('Short description for the visually impaired'),
'#type' => 'textfield',
'#required' => TRUE,
'#required_error' => $this->t('Alternative text is required.<br><em>(Only in rare cases should this be left empty. To create empty alternative text, enter <code>""</code> — two double quotes without any content).'),