Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-34569 accessibility compliance for wiki module: Add label for inp…

…ut text and select tag
  • Loading branch information...
commit ee5a93f38e6d044d47134270f92b7de1d13557b9 1 parent 76c9fcc
@rwijaya rwijaya authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  mod/wiki/editors/wikieditor.php
View
3  mod/wiki/editors/wikieditor.php
@@ -120,7 +120,8 @@ private function getButtons() {
$html .= html_writer::empty_tag('img', array('alt' => $button[1], 'src' => $CFG->wwwroot . '/mod/wiki/editors/wiki/images/' . $button[0]));
$html .= "</a>";
}
- $html .= "<select onchange=\"insertTags('{$imagetag[0]}', '{$imagetag[1]}', this.value)\">";
+ $html .= "<label class='accesshide' for='addtags'>" . get_string('insertimage', 'wiki') . "</label>";
+ $html .= "<select id='addtags' onchange=\"insertTags('{$imagetag[0]}', '{$imagetag[1]}', this.value)\">";
$html .= "<option value='" . s(get_string('wikiimage', 'wiki')) . "'>" . get_string('insertimage', 'wiki') . '</option>';
foreach ($this->files as $filename) {
$html .= "<option value='".s($filename)."'>";
Please sign in to comment.
Something went wrong with that request. Please try again.