mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
BRANCH MERGE
These are the changes from MOODLE_13_STABLE, merged into trunk The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point The biggest changes here are the fixes for HTML editor in all standard modules
This commit is contained in:
parent
308214e87e
commit
7613890851
49 changed files with 175 additions and 198 deletions
|
@ -33,16 +33,8 @@
|
|||
$form->showunanswered = 0;
|
||||
}
|
||||
|
||||
if ($usehtmleditor = can_use_richtext_editor()) {
|
||||
$defaultformat = FORMAT_HTML;
|
||||
$onsubmit = "onsubmit=\"copyrichtext(document.form.text);\"";
|
||||
} else {
|
||||
$defaultformat = FORMAT_MOODLE;
|
||||
$onsubmit = "";
|
||||
}
|
||||
|
||||
?>
|
||||
<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
|
||||
<form name="form" method="post" action="mod.php">
|
||||
|
||||
<table cellpadding=5>
|
||||
|
||||
|
@ -74,15 +66,19 @@
|
|||
<?php
|
||||
print_textarea($usehtmleditor, 20, 60, 680, 400, "text", $form->text);
|
||||
|
||||
echo "<p align=right>";
|
||||
helpbutton("textformat", get_string("formattexttype"));
|
||||
print_string("formattexttype");
|
||||
echo ": ";
|
||||
if (!$form->format) {
|
||||
$form->format = $defaultformat;
|
||||
if ($usehtmleditor) {
|
||||
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
|
||||
} else {
|
||||
echo "<p align=right>";
|
||||
helpbutton("textformat", get_string("formattexttype"));
|
||||
print_string("formattexttype");
|
||||
echo ": ";
|
||||
if (!$form->format) {
|
||||
$form->format = $defaultformat;
|
||||
}
|
||||
choose_from_menu(format_text_menu(), "format", $form->format, "");
|
||||
echo "</p>";
|
||||
}
|
||||
choose_from_menu(format_text_menu(), "format", $form->format, "");
|
||||
echo "</p>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -167,9 +163,3 @@
|
|||
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
|
||||
</center>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if ($usehtmleditor) {
|
||||
print_richedit_javascript("form", "text", "yes");
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2004021700;
|
||||
$module->requires = 2004013101; // Requires this Moodle version
|
||||
$module->requires = 2004052501; // Requires this Moodle version
|
||||
$module->cron = 0;
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue