}
$str .= '</textarea>'."\n";
+ if ($usehtmleditor) {
+ $str .= editorshortcutshelpbutton();
+ }
+
if ($return) {
return $str;
}
$linkobject .= $imagetext;
} else {
$linkobject .= '<img alt="'.$tooltip.'" src="'.
- $CFG->pixpath .'/help.gif" />';
+ $CFG->pixpath .'/help.gif" />';
}
} else {
$linkobject .= $tooltip;
helpbutton('emoticons', get_string('helpemoticons'), 'moodle', true, true, '', false, $imagetext);
}
+/**
+ * Print a help button.
+ *
+ * Prints a special help button for html editors (htmlarea in this case)
+ * @uses $CFG
+ */
+function editorshortcutshelpbutton() {
+
+ global $CFG;
+ $imagetext = '<img src="' . $CFG->wwwroot . '/lib/editor/htmlarea/images/kbhelp.gif" width="49" height="17" alt="'.
+ get_string('editorshortcutkeys').'" style="width:49px; height:17px; margin:0;" />';
+
+ return helpbutton('editorshortcuts', get_string('editorshortcutkeys'), 'moodle', true, false, '', true, $imagetext);
+}
+
/**
* Print a message and exit.
*