From: moodler Date: Mon, 3 Nov 2003 16:58:45 +0000 (+0000) Subject: Use new editor stuff X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=40bed9e13d07aa65688a6e9389be8824e9330f46;p=moodle.git Use new editor stuff --- diff --git a/mod/resource/details.php b/mod/resource/details.php index c88c921ff4..54694f3e8b 100644 --- a/mod/resource/details.php +++ b/mod/resource/details.php @@ -5,7 +5,7 @@ require_login(); - $usehtmleditor = can_use_richtext_editor(); + $usehtmleditor = can_use_html_editor(); if ($form = data_submitted($destination)) { @@ -36,12 +36,7 @@ print_simple_box_start("center", "", "$THEME->cellheading"); - if ($usehtmleditor and $form->type == HTML) { - $onsubmit = "onsubmit=\"copyrichtext(theform.alltext);\""; - } else { - $onsubmit = ""; - } - echo "
destination\">"; + echo "destination\">"; echo ""; echo ""; @@ -428,7 +423,7 @@ type == HTML) { - print_richedit_javascript("theform", "alltext", "yes"); + use_html_editor(); } print_simple_box_end(); print_footer($course);

$strname:

$form->name