From 0ac97084faa3d0114b8cb6d69332dfa47b6edfb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Sun, 7 Apr 2013 18:18:01 +0200 Subject: [PATCH] MDL-34674 use browser built-in spell checking in all browsers except < IE10 --- error/index.php | 2 +- lib/adminlib.php | 4 ++-- lib/deprecatedlib.php | 2 +- .../spellchecker/lang/en/tinymce_spellchecker.php | 2 +- lib/editor/tinymce/plugins/spellchecker/lib.php | 13 +++++++++++++ lib/form/editor.php | 2 +- mod/assignment/lib.php | 4 ++-- mod/data/field/textarea/field.class.php | 2 +- user/addnote.php | 2 +- user/groupaddnote.php | 2 +- 10 files changed, 24 insertions(+), 11 deletions(-) diff --git a/error/index.php b/error/index.php index 0e57570747d..6798a48f475 100644 --- a/error/index.php +++ b/error/index.php @@ -60,7 +60,7 @@ ?>

-
+
diff --git a/lib/adminlib.php b/lib/adminlib.php index 3156374c2df..71c244ce055 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -1920,7 +1920,7 @@ class admin_setting_configtextarea extends admin_setting_configtext { } return format_admin_setting($this, $this->visiblename, - '
', + '
', $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, - '
', + '
', $this->description, true, '', $defaultinfo, $query); } } diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 8022c44df6f..7a94b59effc 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -1909,7 +1909,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v $editorclass = ''; } - $str .= "\n".''; + . $auser->id.'" rows="2" cols="20" spellcheck="true">'.($auser->submissioncomment).''; } else { $comment = '
'.shorten_text(strip_tags($auser->submissioncomment),15).'
'; } @@ -1549,7 +1549,7 @@ class assignment_base { } else if ($quickgrade) { $comment = '
' . '
'; + . $auser->id.'" rows="2" cols="20" spellcheck="true">'.($auser->submissioncomment).''; } else { $comment = '
 
'; } diff --git a/mod/data/field/textarea/field.class.php b/mod/data/field/textarea/field.class.php index 847bae1a6bd..3fc7a711f07 100644 --- a/mod/data/field/textarea/field.class.php +++ b/mod/data/field/textarea/field.class.php @@ -125,7 +125,7 @@ class data_field_textarea extends data_field_base { } $editor->use_editor($field, $options, $fpoptions); $str .= ''; - $str .= '
'; + $str .= '
'; $str .= '
'; $str .= ''. fullname($user, true), - '', + '', $checkbox ); } diff --git a/user/groupaddnote.php b/user/groupaddnote.php index 69fdfb11348..3d63e65f36f 100644 --- a/user/groupaddnote.php +++ b/user/groupaddnote.php @@ -112,7 +112,7 @@ echo get_string('users'). ': ' . implode(', ', $userlist) . '.'; echo '

'; echo '

' . get_string('content', 'notes'); -echo '

'; +echo '

'; echo '

'; echo html_writer::label(get_string('publishstate', 'notes'), 'menustate');