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
+1 -1
View File
@@ -1909,7 +1909,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v
$editorclass = '';
}
$str .= "\n".'<textarea class="form-textarea" id="'. $id .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'">'."\n";
$str .= "\n".'<textarea class="form-textarea" id="'. $id .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'" spellcheck="true">'."\n";
if ($usehtmleditor) {
$str .= htmlspecialchars($value); // needed for editing of cleaned text!
} else {