jollyjim Posted October 11, 2005 Posted October 11, 2005 Hi all, When I use either fckeditor or textarea in categories admin, two extra unwanted <br> are created. Does anyone have any idea what might cause this?? Here is my code from /admin/includes/functions/html_output.php: // Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text) { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = '/catalog03/admin/FCKeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; } and // Output a form textarea field function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= stripslashes($GLOBALS[$name]); } elseif (tep_not_null($text)) { $field .= $text; } $field .= '</textarea>'; return $field; } Any kind of hint is most most welcome, since this is making unwanted space on my upcoming site. BR Oskar (jollyjim)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.