compatibility with 1.1.1 ... this way it works on both.
global $CFG;
?>
<center>
-<form name="form" method="post" action="edit.php" enctype="multipart/form-data">
+<form name="form" method="post" <?=$onsubmit ?> action="edit.php" enctype="multipart/form-data">
<table class=generalbox cellpadding=5 bgcolor="<?php p($THEME->cellheading)?>">
<?PHP
if (isset($errors)) {
<?PHP
if ($usehtmleditor) {
- use_html_editor("text");
+ print_richedit_javascript("form", "text", "yes");
}
?>
$strglossaries = get_string("modulenameplural", "glossary");
$stredit = get_string("edit");
-if ($usehtmleditor = can_use_html_editor()) {
+if ($usehtmleditor = can_use_richtext_editor()) {
$defaultformat = FORMAT_HTML;
+ $onsubmit = "onsubmit=\"copyrichtext(form.text);\"";
} else {
$defaultformat = FORMAT_MOODLE;
+ $onsubmit = "";
}
print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",