mumme1 Posted August 16, 2012 Share Posted August 16, 2012 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! =) Quote Link to comment Share on other sites More sharing options...
hubble Posted August 23, 2012 Share Posted August 23, 2012 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. Quote OScommerse 2.3.3Mini Template SystemAjax Attribute Manager http://addons.oscommerce.com/info/7888CKeditor http://addons.oscommerce.com/info/7650European Bank Transfer http://addons.oscommerce.com/info/3198Information Pages Unlimited http://addons.oscommerce.com/info/1026Generix Box http://addons.oscommerce.com/info/7802MATC (Must agree to conditions) http://addons.oscommerce.com/info/8205Omnikassa http://addons.oscommerce.com/info/8432Product sort http://addons.oscommerce.com/info/8311Product Image Directory http://addons.oscommerce.com/info/8150 Link to comment Share on other sites More sharing options...
hubble Posted August 23, 2012 Share Posted August 23, 2012 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. Quote OScommerse 2.3.3Mini Template SystemAjax Attribute Manager http://addons.oscommerce.com/info/7888CKeditor http://addons.oscommerce.com/info/7650European Bank Transfer http://addons.oscommerce.com/info/3198Information Pages Unlimited http://addons.oscommerce.com/info/1026Generix Box http://addons.oscommerce.com/info/7802MATC (Must agree to conditions) http://addons.oscommerce.com/info/8205Omnikassa http://addons.oscommerce.com/info/8432Product sort http://addons.oscommerce.com/info/8311Product Image Directory http://addons.oscommerce.com/info/8150 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.