Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I incorporate Fck Editor with Page Editor


Recommended Posts

Searched but I didn't find the answer, so I'm posting the question.

 

I'm using the Page Editor module (22 Jan 2005), with a few fixes (like sort order and the sql comma/semi-colen swap), but I also want to install a FCK-Editor.

 

Does anyone already have a Page Editor+Fck Editor working, that they might let me know which of the FCK modules they used, and as to how to combine the two modules?

Link to comment
Share on other sites

Searched but I didn't find the answer, so I'm posting the question.

 

I'm using the Page Editor module (22 Jan 2005), with a few fixes (like sort order and the sql comma/semi-colen swap), but I also want to install a FCK-Editor.

 

Does anyone already have a Page Editor+Fck Editor working, that they might let me know which of the FCK modules they used, and as to how to combine the two modules?

 

 

Hello,

 

I am not familiar with Page Editor.

But I think you can Install this FCK-Editor

 

Then

1.) in catalog/pages.php

 

Find (arround line 9):

    
define('TEXT_INFORMATION', nl2br($page['pages_body']));

Replace with:

    
define('TEXT_INFORMATION', $page['pages_body']);

 

2.) in catalog/admin/pages.php

 

Find (arround line 224):

                <td class="main"><?php echo tep_draw_textarea_field('pages_body[' . $languages[$i]['id'] . ']', 'soft', '60', '15', (isset($pages_body[$languages[$i]['id']]) ? $pages_body[$languages[$i]['id']] : tep_get_pages_body($pInfo->pages_id, $languages[$i]['id']))); ?></td>

 

and replace with:

                <td class="main"><?php echo tep_draw_fckeditor('pages_body[' . $languages[$i]['id'] . ']', '580', '400', (isset($pages_body[$languages[$i]['id']]) ? $pages_body[$languages[$i]['id']] : tep_get_pages_body($pInfo->pages_id, $languages[$i]['id']))); ?></td>

 

Find (arround line 291)

    
<?php echo tep_image(DIR_WS_CATALOG_IMAGES . $pages_image_name, $pInfo->pages_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . nl2br($pInfo->pages_body); ?>

Replace with:

    
<?php echo tep_image(DIR_WS_CATALOG_IMAGES . $pages_image_name, $pInfo->pages_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->pages_body; ?>

 

 

I have added instructions by e-peoples (31 Dec 2008) to my own instructions here

 

Stanislav

Edited by Pektsekye
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...