]> git.mjollnir.org Git - moodle.git/commitdiff
Merging MDL-8825 Fixed html editor in wiki (invisible fieldset problem)
authorsam_marshall <sam_marshall>
Fri, 9 Mar 2007 15:44:48 +0000 (15:44 +0000)
committersam_marshall <sam_marshall>
Fri, 9 Mar 2007 15:44:48 +0000 (15:44 +0000)
mod/wiki/ewiki/ewiki.php

index 677be7944dac936d34991a6eac0b18c9127ff312..eeeb2f00a2ac6d9ac101c2296cfa3547ac1835b4 100644 (file)
@@ -1544,7 +1544,7 @@ function ewiki_page_edit_form(&$id, &$data, &$hidden_postdata) {
        . '<form method="post" enctype="multipart/form-data" action="'
        . ewiki_script("edit", $id) . '" '
        . ' accept-charset="'.EWIKI_CHARSET.'">' . "\n";
-   $o .= '<fieldset class="invisiblefieldset">';
+   $o .= '<div>';
    #-- additional POST vars
    foreach ($hidden_postdata as $name => $value) {
        $o .= '<input type="hidden" name="'.$name.'" value="'.$value.'" />'."\n";
@@ -1568,11 +1568,10 @@ function ewiki_page_edit_form(&$id, &$data, &$hidden_postdata) {
      print_textarea($usehtmleditor, $rows, $cols, 680, 400, "content", $oldtext);
      echo '</td></tr></table>';
 
-     $o .= ob_get_contents();     
-     //yu: this is causing problem and i don't know where to put it   
      if ($usehtmleditor) {
         use_html_editor("content");
      }
+     $o .= ob_get_contents();     
      ob_end_clean();     
 
    } else {
@@ -1604,7 +1603,7 @@ function ewiki_page_edit_form(&$id, &$data, &$hidden_postdata) {
       $o .= $pf($id, $data, $action);
    }
 
-   $o .= "\n</fieldset></form>\n";
+   $o .= "\n</div></form>\n";
    //   . ewiki_t("EDIT_FORM_2");  // MOODLE DELETION
 
    return('<div class="edit-box">'. $o .'</div>');