MDL-9556: HTML editor shortcut button should only appear when JS enabled

This commit is contained in:
sam_marshall
2007-04-24 11:49:50 +00:00
parent b74504fff3
commit c5e4aebf29
+3 -1
View File
@@ -3817,7 +3817,9 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v
$str .= '</textarea>'."\n";
if ($usehtmleditor) {
$str .= editorshortcutshelpbutton();
// Show shortcuts button if HTML editor is in use, but only if JavaScript is enabled (MDL-9556)
$str .= '<script type="text/javascript">document.write(\''.
str_replace('\'','\\\'',editorshortcutshelpbutton()).'\'); </script>';
}
if ($return) {