Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have successfully installed ckeditor so it works in the products area using the following install directions

But how do I get this to work in the newsletter manager.?

I would really appreciate some help with what code should be place where to activate the editor.

 

Unable to find a solution here in the forums.

---------------------------

1.

Download ckeditor from

http://ckeditor.com/download

 

2. Unpack and upload to catalog/admin. (catalog/admin/ckeditor)

 

3. Open catalog/admin/categories.php

and find this line

<script language="javascript" src="includes/general.js"></script>

 

Add this after.

 

<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>

 

 

4. Find this code in catalog/admin/categories.php

 

<?php echo tep_draw_textarea_field('products_description[' .

$languages[$i]['id'] . ']', 'soft', '70', '15',

(isset($products_description[$languages[$i]['id']]) ?

stripslashes($products_description[$languages[$i]['id']]) :

tep_get_products_description($pInfo->products_id,

$languages[$i]['id']))); ?>

 

replace with this

 

<?php echo tep_draw_textarea_field('products_description[' .

$languages[$i]['id'] . ']', 'soft', '70', '10',

(isset($products_description[$languages[$i]['id']]) ?

stripslashes($products_description[$languages[$i]['id']]) :

tep_get_products_description($pInfo->products_id,

$languages[$i]['id'])),'id = products_description[' .

$languages[$i]['id'] . '] class="ckeditor"'); ?>

Posted

Thanks Chris,

 

unistalled the ckeditor and in the process of fck install, however am now stuck.

 

All good until I get to the last stages of the install instructions show below.

 

The contribution has a userfiles directory to install httpdocs/catalog/userfiles/ which I did . This was step #2 of the install then I implemented the #2.2 changes with no problems.

 

 

Then the next step says to

 

3. Create a directory named: userfiles in the root of your website and give 777 Permission.

So does that mean I need another to create a new directory or is this the directory I had to install above?

 

Next 3 Questions....

4. Insert the path to your /userfiles/ directory in:

admin/fckeditor/editor/filemanager/connectors/php/config.php

 

 

$Config['UserFilesPath'] = '/userfiles/' ; so here do I change this to '/catalog/userfiles/'

 

and a few lines down:

 

$Config['UserFilesAbsolutePath'] = '/YOUR/ABSOLUTE/PATH/OF/THE/USERFILES/DIRECTORY/' ; and change this to '/httpdocs/catalog/userfiles/'

 

 

5. Go to Administration >> Catalog >> Categories/Products

edit any of the products to see the FCKeditor in the description of a product

 

6. Install Addons in the Addons directory. I don't seem to have an Addons Directory.... so what do I do here ?

 

7. Now you have a complete shopping cart with the best and light editor!

[/b]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...