From: skodak Date: Tue, 26 Oct 2004 19:57:18 +0000 (+0000) Subject: merged from 14_STABLE - X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=453c406e314b608b2b01f9ae45f46cbab29d79ad;p=moodle.git merged from 14_STABLE - updated htmleditor invocation (from files/index.php) --- 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(); }