From 453c406e314b608b2b01f9ae45f46cbab29d79ad Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 26 Oct 2004 19:57:18 +0000 Subject: [PATCH] merged from 14_STABLE - updated htmleditor invocation (from files/index.php) --- mod/resource/coursefiles.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/mod/resource/coursefiles.php b/mod/resource/coursefiles.php index 41d2252ec1..42c98dbc1c 100644 --- a/mod/resource/coursefiles.php +++ b/mod/resource/coursefiles.php @@ -312,21 +312,16 @@ fclose($fileptr); if (mimeinfo("type", $file) == "text/html") { - if ($usehtmleditor = can_use_richtext_editor()) { - $onsubmit = "onsubmit=\"copyrichtext(document.form.text);\""; - } else { - $onsubmit = ""; - } + $usehtmleditor = can_use_html_editor(); } else { $usehtmleditor = false; - $onsubmit = ""; } $usehtmleditor = false; // Always keep it off for now print_heading("$streditfile"); echo "
"; - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -345,8 +340,8 @@ echo "
"; echo "
"; - if ($usehtmleditor) { - print_richedit_javascript("form", "text", "yes"); + if ($usehtmleditor) { + use_html_editor(); } -- 2.39.5