diff --git a/mod/resource/details.php b/mod/resource/details.php index c88c921ff43..54694f3e8b6 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 "