Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CKeditor and Filemanager on 2.3.X? Anybody Succeeded?


mumme1

Recommended Posts

Hi

 

I need an WYSIWYG editor with a filemanager.

I have installed CKeditor from http://addons.oscommerce.com/info/7650 and have tried to combine the CKeditor with a filemanager.

I have tried to use CKfinder and KFM filemanager without any luck. I cant get it to work.

 

There is an addon "CKeditor with KFM filemanager" http://addons.oscommerce.com/info/8302 but the download file is corrupt, so you cant open it.

 

If you have succeed to combine a WYSIWYG editor with a filemanager, please let me know how you did that! =)

Link to comment
Share on other sites

Hi magnus,

 

 

I discover that the textfield didn't have an id tag

I added a extra parameter to the text area creation in the file admin/categories.php:

 

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

 

 

Original

 

 

<td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (empty($pInfo->products_id) ? '' : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>

 

so it becomes:

 

 

<td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (empty($pInfo->products_id) ? '' : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),'id='.$languages[$i]['id'].''); ?></td>

 

And then the ckeditor works again.

Since there was no id in I guess adding it doesn't harm anything.

There might be a more elegant way of solving this since this just fixes the text area when adding or editing a new product.

Link to comment
Share on other sites

Better solution!

 

In

Admin/includes/template_top.php

 

change

 

 

var editorID = $(this).attr("id");

 

to

 

 

var editorID = $(this).attr("name");

 

All textareas will have CKEditor functionality again.

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