This is my simple MOD to osCommerce 2.2 MS2 that adds the wonderful FCKeditor WYSIWYG editor to osCommerce. FCKeditor 2.0 RC2 is the version I am adding, but depending on updates, it should work with future versions. I am not a developer of FCKeditor... I'm just a user of it describing how to add it to osCommerce. FCKeditor is very easy to install and is completely usable sitewide, in place of virtually any textarea or textbox. It can be highly customized for your needs or preferences. This describes how to install it for editing product descriptions.
Legend: 
Download

Report
FCK EDITOR FOR WYSIWG EDITING
This update makes some corrections & gives instruction for latest version (2.6.2)
For osCommerce Online Merchant 2.2 ms2, rc1 & rc2a
Download the latest version from http://www.fckeditor.net/
Modified install to work with rc2a, correct bug in function call, added userfiles directory for flash etc files yet ensure existing osC images directory is still used.
This has been tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & RC2a and is register_globals compatible.
Started Forum for this great editor at http://forums.oscommerce.com/index.php?showtopic=302554
Just some tips to add here.
The included font sizes are a little akward & have variable effects in different browsers, to expand/improve make the following change:
in catalog/admin/fckeditor/fckconfig.js
change line 153 from:
FCKConfig.FontSizes = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
To:
FCKConfig.FontSizes = '8;10;12;14;16;18;20;24;28;32;36;42;50;58;66;smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
To add extra, but still standard fonts, change line 152 from:
FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
To:
FCKConfig.FontNames = 'Arial;Arial Black;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;Georgia;Impact;Palatino Linotype;Trebuchet MS' ;
Thats it for now, attached ZIP FILE is empty. NO POINT DOWNLOADING IT
Version 2.5b has errors with current browsers.
This update makes some corrections & gives instruction for latest version (2.6b)
For osCommerce Online Merchant [2.2rc1] Image upload now works!!
Download the latest version from http://www.fckeditor.net/
Follow attached instructions
INSTALLATION - new version to avoid having to make changes to your images folder.
Plus correction to my error!.
Version 2.5b has errors with current browsers.
This update makes some corrections & gives instruction for latest version (2.6b)
For osCommerce Online Merchant [2.2rc1]
Image upload now works!!
Now no need to rename images folder
Download the latest version of FCK from http://www.fckeditor.net/
And follow attached instructions
Version 2.5b has errors with current browsers.
This update makes some corrections & gives instruction for latest version (2.6b)
For osCommerce Online Merchant [2.2rc1]
Image upload now works!!
Download the latest version of FCK from http://www.fckeditor.net/
And follow attached instructions
FCKeditor v2.5 Beta [http://www.fckeditor.net/] adapted to Online Merchant 2.2rc1.
New install instructions included. Can be used to replace any textarea.
Full Package
This is my first contribution to osCommerce, and I really don't know if this is going to work for everyone, but it worked for me so here goes.
I don't know if this matters, but I use GoDaddy.com for my hosting. In order for me to get this contribution to work, I had to include "../" (without the quotes) whenever the path to FCKeditor was referenced.
So for example, where the instructions state to insert the following code in html_output.php:
require("fckeditor/fckeditor.php");
I needed to change the code statement to:
require("../fckeditor/fckeditor.php");
Similarly, in the same file, the instructions tell us to insert the following code (also in 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 = 'fckeditor/';
$oFCKeditor -> Value = $text;
$field = $oFCKeditor->Create($name);
return $field;
}
I had to change the BasePath line to read '../fckeditor/'
If I didn't make these changes, I would end up with a copy of my web site in the editor area, with no editing capabilities at all.
The text file that is included is only the installation instructions for Beaman's update below.
I hope this can help someone out there.
Here is the new working FCKeditor. This will add HTML editor in your product description.
I just got it from www.fckeditor.com and installed. It is working 100% fine for me. works great.
I did not make it just fixed one thing. this contribution comes with instructions. and It took me just 10 mins to install it.
I got tired of trying to find a contribution that allowed you to use FCKeditor for bothe Product Descriptions and Information Pages, so I came up with this.
Basically, you create a plain text file (.inc), edit it with FckEditor as installed in the main package, and include it in an information page in place of the usual "TEXT_INFORMATION".
Hope it helps someone!
More Pics sur FCKeditor.
More Pics on FCKeditor.
More Pics auf FCKeditor .
This version is compatible with the new version of osCommerce
the recent version of 13 November 2005:
osCommerce 2.2 Milestone 2 Update 051113
this version include all of previous fixes:
Doku-Fix and Small Update (added "echo" for tep_draw_fckeditor version
Include two txt files. in english and in spanish
------------
Esta version es compatible con la reciente version de osCommerce, que salio el dia 13 de Noviembre de 2005
la version:
osCommerce 2.2 Milestone 2 Update 051113
-- esta version es solo para los que tienen instalado esa version de osCommerce --
Incluye ademas los dos fixes anteriores: Doku-Fix y Small Update (added "echo" for tep_draw_fckeditor version)
Es un pack completo
Incluye dos archivos de texto txt
uno con las intrucciones en espaņol y otro con las instrucciones en ingles
now just copy & paste ...
When it says
######## OPEN ########
/admin/functions/html_output.php
######################
correct would be
######## OPEN ########
admin/includes/functions/html_output.php
######################
So far works also fine with the final release of FCKeditor.
This is my simple MOD to osCommerce 2.2 MS2 that adds the wonderful FCKeditor WYSIWYG editor to osCommerce. FCKeditor 2.0 RC2 is the version I am adding, but depending on updates, it should work with future versions. I am not a developer of FCKeditor... I'm just a user of it describing how to add it to osCommerce. FCKeditor is very easy to install and is completely usable sitewide, in place of virtually any textarea or textbox. It can be highly customized for your needs or preferences. This describes how to install it for editing product descriptions.