]> git.mjollnir.org Git - moodle.git/commitdiff
Some cosmetic changes to the code to use the new html editor functions.
authormoodler <moodler>
Sun, 9 Nov 2003 03:16:28 +0000 (03:16 +0000)
committermoodler <moodler>
Sun, 9 Nov 2003 03:16:28 +0000 (03:16 +0000)
No change in functionality at all.

I was in the area trying to fix a bug on this page that only
shows up in Internet Explorer (something to do with editor)

mod/glossary/edit.html
mod/glossary/edit.php

index aafc2679cff94802fb718d1bdeb28d07971a50fa..883e50c723f0560b45ad2d78b12c7bb63bf03230 100644 (file)
@@ -2,7 +2,7 @@
     global $CFG;
 ?>
 <center>
-<form name="form" method="post" <?=$onsubmit ?> action="edit.php" enctype="multipart/form-data">
+<form name="form" method="post"  action="edit.php" enctype="multipart/form-data">
 <table  class=generalbox cellpadding=5 bgcolor="<?php p($THEME->cellheading)?>">
 <?PHP
 if (isset($errors)) {
@@ -181,7 +181,7 @@ if (isset($errors)) {
 
 <?PHP 
    if ($usehtmleditor) { 
-       print_richedit_javascript("form", "text", "yes");
+       use_html_editor("text");
    }
 ?>
 
index 4e9bdf03e1529cad57d6b013ca7ed21dbd089413..1e5189d35ae62bfbcd94efa2f18ba1ff9525ee6e 100644 (file)
@@ -195,12 +195,10 @@ $strglossary = get_string("modulename", "glossary");
 $strglossaries = get_string("modulenameplural", "glossary");
 $stredit = get_string("edit");
 
-if ($usehtmleditor = can_use_richtext_editor()) {
+if ($usehtmleditor = can_use_html_editor()) {
     $defaultformat = FORMAT_HTML;
-    $onsubmit = "onsubmit=\"copyrichtext(form.text);\"";
 } else {
     $defaultformat = FORMAT_MOODLE;
-    $onsubmit = "";
 }
 
 print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",