Skip to content

Commit

Permalink
Merge branch 'MDL-70373' of https://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Dec 16, 2020
2 parents 2aa55eb + 7a1da78 commit 45bbc5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/type/essay/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function response_area_input($name, $qa, $step, $lines, $context) {
$this->class_name() . ' qtype_essay_response'));

$output .= html_writer::tag('div', html_writer::tag('textarea', s($response),
array('id' => $id, 'name' => $inputname, 'rows' => $lines, 'cols' => 60)));
array('id' => $id, 'name' => $inputname, 'rows' => $lines, 'cols' => 60, 'class' => 'form-control')));

$output .= html_writer::start_tag('div');
if (count($formats) == 1) {
Expand Down Expand Up @@ -455,7 +455,7 @@ class qtype_essay_format_plain_renderer extends plugin_renderer_base {
* @return string the HTML for the textarea.
*/
protected function textarea($response, $lines, $attributes) {
$attributes['class'] = $this->class_name() . ' qtype_essay_response';
$attributes['class'] = $this->class_name() . ' qtype_essay_response form-control';
$attributes['rows'] = $lines;
$attributes['cols'] = 60;
return html_writer::tag('textarea', s($response), $attributes);
Expand Down

0 comments on commit 45bbc5a

Please sign in to comment.