]> git.mjollnir.org Git - moodle.git/commitdiff
Removed some old editor stuff causing problems in IE
authormoodler <moodler>
Mon, 17 Nov 2003 01:56:43 +0000 (01:56 +0000)
committermoodler <moodler>
Mon, 17 Nov 2003 01:56:43 +0000 (01:56 +0000)
course/editsection.html
course/editsection.php

index 901655a27736d985ddd4ede7de61d698c011960e..a444b0a5d464f50a9e591dd3a83ba869d4f36048 100644 (file)
@@ -1,5 +1,5 @@
 <center>
-<form name="theform" method="post" <?php echo $onsubmit ?> action="editsection.php">
+<form name="theform" method="post" action="editsection.php">
 <table border=0 cellpadding=0 cellspacing=0>
 <tr>
 <td align=top>
@@ -28,8 +28,3 @@
 </p>
 </form>
 </center>
-<?php 
-   if ($usehtmleditor) { 
-       print_richedit_javascript("theform", "summary", "yes");
-   }
-?>
index 54d67a8526fe828b9ffe5a5ee171b93b2d0d8883..56006824855448e11aa64b3bf316edd2b2806240 100644 (file)
         $form = $section;
     }
 
-    if ($usehtmleditor = can_use_richtext_editor()) {
-        $onsubmit = "onsubmit=\"copyrichtext(theform.summary);\"";
-    } else {
-        $onsubmit = "";
-    }
+    $usehtmleditor = can_use_html_editor();
 
     $sectionname = get_string("name$course->format");
     $stredit = get_string("edit", "", " $sectionname $section->section");
 
        print_header("$course->shortname: $stredit", "$course->fullname", 
                  "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> 
-                  -> $stredit", "form.summary");
+                  -> $stredit");
 
     include("editsection.html");
 
+    if ($usehtmleditor) { 
+        use_html_editor();
+    }
     print_footer($course);
 
 ?>