Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configuring FCKeditor


Guest

Recommended Posts

Hi All,

 

According to the instructions for configuring FCKeditor I need to modify the html_output.php located here

 

/admin/includes/functions

 

I found the file but cannot understand where I need to add the modifications below.

 

If anyone can provide me with a copy of the html_output.php to use will be grateful.

 

Thanks

 

Find near top:

 

////

// The HTML href link wrapper function

 

 

Add before:

 

require("fckeditor/fckeditor.php");

 

 

Find near 235-253

 

 

////

// 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 .= tep_output_string_protected(stripslashes($GLOBALS[$name]));

} elseif (tep_not_null($text)) {

$field .= tep_output_string_protected($text);

}

 

$field .= '</textarea>';

 

return $field;

}

 

 

Add After:

 

 

////

////

// 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 = 'fckeditor/';

$oFCKeditor -> Value = $text;

$field = $oFCKeditor->Create($name);

 

return $field;

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...