From: sam_marshall Date: Tue, 24 Apr 2007 11:59:17 +0000 (+0000) Subject: Merged MDL-9556: HTML editor shortcut button should only appear when JS enabled X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f130a9d81002811518f1cc02119d4a2f2dd8df29;p=moodle.git Merged MDL-9556: HTML editor shortcut button should only appear when JS enabled --- diff --git a/lib/weblib.php b/lib/weblib.php index 823c222018..4d1749e509 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3862,7 +3862,9 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v $str .= ''."\n"; if ($usehtmleditor) { - $str .= editorshortcutshelpbutton(); + // Show shortcuts button if HTML editor is in use, but only if JavaScript is enabled (MDL-9556) + $str .= ''; } if ($return) {