Use the new method for calling html editor

This commit is contained in:
moodler
2003-11-24 01:16:25 +00:00
parent 4fcc1c214a
commit 02fa231515
+3 -5
View 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();
}
?>