]> git.mjollnir.org Git - moodle.git/commitdiff
Use new editor stuff
authormoodler <moodler>
Mon, 3 Nov 2003 16:58:45 +0000 (16:58 +0000)
committermoodler <moodler>
Mon, 3 Nov 2003 16:58:45 +0000 (16:58 +0000)
mod/resource/details.php

index c88c921ff4351089e1792ac962554037068636cc..54694f3e8b621aaa3976445babbd54f1e3fdeecf 100644 (file)
@@ -5,7 +5,7 @@
 
     require_login();
 
-    $usehtmleditor = can_use_richtext_editor();
+    $usehtmleditor = can_use_html_editor();
 
     if ($form = data_submitted($destination)) { 
 
 
         print_simple_box_start("center", "", "$THEME->cellheading");
 
-        if ($usehtmleditor and $form->type == HTML) {
-            $onsubmit = "onsubmit=\"copyrichtext(theform.alltext);\"";
-        } else {
-            $onsubmit = "";
-        }
-        echo "<form name=theform method=post $onsubmit action=\"$form->destination\">";
+        echo "<form name=theform method=post action=\"$form->destination\">";
         echo "<table cellpadding=5 align=center>";
         echo "<tr><td align=right nowrap><p><b>$strname:</b></p></td><td><p>$form->name</p></a></td></tr>";
 
         </form>
 <?php
         if ($usehtmleditor and $form->type == HTML) {
-            print_richedit_javascript("theform", "alltext", "yes");
+            use_html_editor();
         }
         print_simple_box_end();
         print_footer($course);