MDL-8825 Fixed html editor in wiki (invisible fieldset problem)

This commit is contained in:
sam_marshall
2007-03-09 15:41:19 +00:00
parent b978bf3a87
commit 4fc82e8dc9
+3 -4
View 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>');