]> git.mjollnir.org Git - moodle.git/commitdiff
No need for HTML editor stuff
authormoodler <moodler>
Mon, 24 Nov 2003 01:48:02 +0000 (01:48 +0000)
committermoodler <moodler>
Mon, 24 Nov 2003 01:48:02 +0000 (01:48 +0000)
mod/exercise/mod.html

index e9851ffe28907d078cc4fa1c62aff590b20e20d6..999b74e7bdd7a8be2f5484333cd72da67eeca50c 100644 (file)
@@ -1,13 +1,5 @@
 <?php
        require("$CFG->dirroot/mod/exercise/lib.php");  // for parameter arrays
-       // set the defaults...
-    if ($usehtmleditor = can_use_richtext_editor()) {
-        $defaultformat = FORMAT_HTML;
-        $onsubmit = "onsubmit=\"copyrichtext(document.form.description);\"";
-    } else {
-        $defaultformat = FORMAT_MOODLE;
-        $onsubmit = "";
-    }
        // ...and fill the form if needed
     if (empty($form->name)) {
         $form->name = "";
@@ -32,7 +24,7 @@
     }
 ?>
 
-<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
+<form name="form" method="post" action="mod.php">
 <table cellpadding=5>
 <tr valign=top>
     <td align=right width=\"50%\"><P><B><?php  print_string("title", "exercise") ?>:</B></P></TD>
 <p><?PHP notify(get_string("noteonassessmentelements", "exercise")); ?>
 
 </CENTER>
-</FORM>
-
-<?php  
-   if ($usehtmleditor) { 
-       print_richedit_javascript("form", "description", "no");
-   }
-?>