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
@@ -383,7 +383,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
if (!is_null($this->getAttribute('onblur')) && !is_null($this->getAttribute('onchange'))) {
$editorrules = ' onblur="'.htmlspecialchars($this->getAttribute('onblur')).'" onchange="'.htmlspecialchars($this->getAttribute('onchange')).'"';
}
$str .= '<div><textarea id="'.$id.'" name="'.$elname.'[text]" rows="'.$rows.'" cols="'.$cols.'"';
$str .= '<div><textarea id="'.$id.'" name="'.$elname.'[text]" rows="'.$rows.'" cols="'.$cols.'" spellcheck="true"';
$classes = array();
if (isset($this->_options['collapsed']) && $this->_options['collapsed']) {
$this->_options['collapsible'] = 1;