mirror of
https://github.com/moodle/moodle.git
synced 2025-03-12 11:49:49 +01:00
merged from 14_STABLE -
updated htmleditor invocation (from files/index.php)
This commit is contained in:
parent
2f3b54ae54
commit
453c406e31
@ -312,21 +312,16 @@
|
|||||||
fclose($fileptr);
|
fclose($fileptr);
|
||||||
|
|
||||||
if (mimeinfo("type", $file) == "text/html") {
|
if (mimeinfo("type", $file) == "text/html") {
|
||||||
if ($usehtmleditor = can_use_richtext_editor()) {
|
$usehtmleditor = can_use_html_editor();
|
||||||
$onsubmit = "onsubmit=\"copyrichtext(document.form.text);\"";
|
|
||||||
} else {
|
|
||||||
$onsubmit = "";
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$usehtmleditor = false;
|
$usehtmleditor = false;
|
||||||
$onsubmit = "";
|
|
||||||
}
|
}
|
||||||
$usehtmleditor = false; // Always keep it off for now
|
$usehtmleditor = false; // Always keep it off for now
|
||||||
|
|
||||||
print_heading("$streditfile");
|
print_heading("$streditfile");
|
||||||
|
|
||||||
echo "<table><tr><td colspan=\"2\">";
|
echo "<table><tr><td colspan=\"2\">";
|
||||||
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\" $onsubmit>";
|
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
|
||||||
echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
|
echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
|
||||||
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
|
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
|
||||||
echo " <input type=\"hidden\" name=\"file\" value=\"$file\" />";
|
echo " <input type=\"hidden\" name=\"file\" value=\"$file\" />";
|
||||||
@ -346,7 +341,7 @@
|
|||||||
echo "</td></tr></table>";
|
echo "</td></tr></table>";
|
||||||
|
|
||||||
if ($usehtmleditor) {
|
if ($usehtmleditor) {
|
||||||
print_richedit_javascript("form", "text", "yes");
|
use_html_editor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user