MDL-34674 use browser built-in spell checking in all browsers except < IE10

This commit is contained in:
Petr Škoda
2013-04-12 11:33:23 +02:00
parent b3661ab272
commit 0ac97084fa
10 changed files with 24 additions and 11 deletions
+2 -2
View File
@@ -1920,7 +1920,7 @@ class admin_setting_configtextarea extends admin_setting_configtext {
}
return format_admin_setting($this, $this->visiblename,
'<div class="form-textarea" ><textarea rows="'. $this->rows .'" cols="'. $this->cols .'" id="'. $this->get_id() .'" name="'. $this->get_full_name() .'">'. s($data) .'</textarea></div>',
'<div class="form-textarea" ><textarea rows="'. $this->rows .'" cols="'. $this->cols .'" id="'. $this->get_id() .'" name="'. $this->get_full_name() .'" spellcheck="true">'. s($data) .'</textarea></div>',
$this->description, true, '', $defaultinfo, $query);
}
}
@@ -1966,7 +1966,7 @@ class admin_setting_confightmleditor extends admin_setting_configtext {
$editor->use_editor($this->get_id(), array('noclean'=>true));
return format_admin_setting($this, $this->visiblename,
'<div class="form-textarea"><textarea rows="'. $this->rows .'" cols="'. $this->cols .'" id="'. $this->get_id() .'" name="'. $this->get_full_name() .'">'. s($data) .'</textarea></div>',
'<div class="form-textarea"><textarea rows="'. $this->rows .'" cols="'. $this->cols .'" id="'. $this->get_id() .'" name="'. $this->get_full_name() .'" spellcheck="true">'. s($data) .'</textarea></div>',
$this->description, true, '', $defaultinfo, $query);
}
}