]> git.mjollnir.org Git - moodle.git/commitdiff
Use the new method for calling html editor
authormoodler <moodler>
Mon, 24 Nov 2003 01:16:25 +0000 (01:16 +0000)
committermoodler <moodler>
Mon, 24 Nov 2003 01:16:25 +0000 (01:16 +0000)
mod/label/mod.html

index cb811eafcfc6eb4699eda1df423d93987ee21ebd..c72afecc20a77fa02310510da436708eae86cee8 100644 (file)
@@ -2,16 +2,14 @@
 <!-- It is used from /course/mod.php.  The whole instance is available as $form. -->
 
 <?php
-    if ($usehtmleditor = can_use_richtext_editor()) {
+    if ($usehtmleditor = can_use_html_editor()) {
         $defaultformat = FORMAT_HTML;
-        $onsubmit = "onsubmit=\"copyrichtext(document.form.content);\"";
     } else {
         $defaultformat = FORMAT_MOODLE;
-        $onsubmit = "";
     }
 ?>
 
-<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
+<form name="form" method="post" action="mod.php">
 <center>
 <table cellpadding=5>
 <tr valign=top>
@@ -51,6 +49,6 @@
 
 <?php 
    if ($usehtmleditor) { 
-       print_richedit_javascript("form", "content", "yes");
+       use_html_editor();
    }
 ?>