gediweb Posted April 11, 2008 Posted April 11, 2008 Hi all, I just installed the all-in-one fckeditor. It works perfect on Product descriptions. Now I want to add it to more than just the product descriptions. I would like to add it to a contribution I downloaded: osCMS. It's a great contribution as well, but does not have a WYSIWYG. Does anyone know how to go about doing this? On the instructions for all-in-one fckeditor, it says "FCKeditor is very easy to install and is completely usable sitewide, in place of virtually any textarea or textbox." I just dont know enough I guess to add it to osCMS. Quote
luckyno Posted April 20, 2008 Posted April 20, 2008 Hi all, I just installed the all-in-one fckeditor. It works perfect on Product descriptions. Now I want to add it to more than just the product descriptions. I would like to add it to a contribution I downloaded: osCMS. It's a great contribution as well, but does not have a WYSIWYG. Does anyone know how to go about doing this? On the instructions for all-in-one fckeditor, it says "FCKeditor is very easy to install and is completely usable sitewide, in place of virtually any textarea or textbox." I just dont know enough I guess to add it to osCMS. try this: CHANGE LINE 205 of admin/cms_content.php from: <td class="main" valign="top"><?php echo tep_draw_textarea_field('content_text[' . $i . ']', 'soft', '100', '25', $content_text[$i]); ?></td> to: <td class="main" valign="top"><?php echo tep_draw_fckeditor('content_text[' . $i . ']', 'soft', '600', '400', $content_text[$i]); ?></td> Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!
luckyno Posted April 20, 2008 Posted April 20, 2008 try this (if the previous doesn't work): CHANGE LINE 205 of admin/cms_content.php from: <td class="main" valign="top"><?php echo tep_draw_textarea_field('content_text[' . $i . ']', 'soft', '100', '25', $content_text[$i]); ?></td> to: <td class="main" valign="top"><?php echo tep_draw_fckeditor('content_text[' . $i . ']', '600', '400', $content_text[$i]); ?></td> Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!
gediweb Posted April 21, 2008 Author Posted April 21, 2008 try this (if the previous doesn't work): CHANGE LINE 205 of admin/cms_content.php from: <td class="main" valign="top"><?php echo tep_draw_textarea_field('content_text[' . $i . ']', 'soft', '100', '25', $content_text[$i]); ?></td> to: <td class="main" valign="top"><?php echo tep_draw_fckeditor('content_text[' . $i . ']', '600', '400', $content_text[$i]); ?></td> Thanks, Luca, this one worked like a charm! Quote
indre1 Posted January 2, 2009 Posted January 2, 2009 Thanks, Luca, this one worked like a charm! I used this, but for some reason, for every line break that can be seen in the editor a <br /> is added when previewing the text. For example, in editor's source: Hello<br /> How do you do The same thing in preview looks: Hello<br /><br /> How do you do When I save it and go back to editing, I can only see one <br /> tag, but when previewing it displays 2. This is only a problem in osCMS content, I do now have the same problem when editing product descriptions with FCKEditor. In product editing, the include is a bit more complicated: echo tep_draw_fckeditor('products_description[' . $languages[$i]['id'] . ']','600','300',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); Suggestions? Quote
indre1 Posted January 4, 2009 Posted January 4, 2009 I used this, but for some reason, for every line break that can be seen in the editor a <br /> is added when previewing the text.For example, in editor's source: Hello<br /> How do you do The same thing in preview looks: Hello<br /><br /> How do you do When I save it and go back to editing, I can only see one <br /> tag, but when previewing it displays 2. This is only a problem in osCMS content, I do now have the same problem when editing product descriptions with FCKEditor. In product editing, the include is a bit more complicated: echo tep_draw_fckeditor('products_description[' . $languages[$i]['id'] . ']','600','300',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); Suggestions? The solution was to remove nl2br functions from cms related php files (cms.php and cms_content.php in admin I believe). Quote
fbrace Posted January 10, 2009 Posted January 10, 2009 The solution was to remove nl2br functions from cms related php files (cms.php and cms_content.php in admin I believe). Great Contribution. Works well. Where do I find the text to change all the Titles in Admin/FCKeditor area to english Title FCKeditor verwenden Comments: Soll der HTML-Editor für Beschreibungen benutzt werden? Höhe FCKeditor Comments: Höhe der Eingabefelder in Pixel bei Verwendung des FCK-Editors. Thanks Quote Frederick C Brace,III PA-C www.21st-tees.com (osc) www.tanda-designs.com (osc)
fbrace Posted January 21, 2009 Posted January 21, 2009 Great Contribution. Works well. Where do I find the text to change all the Titles in Admin/FCKeditor area to english Title FCKeditor verwenden Comments: Soll der HTML-Editor für Beschreibungen benutzt werden? Höhe FCKeditor Comments: Höhe der Eingabefelder in Pixel bei Verwendung des FCK-Editors. Thanks I found my own answer to this. All of these titles are database entries in the configuration file for FCKeditor and may be changed to English if you feel safe editing your database. Use Freetranslation.com to convert from German to English Quote Frederick C Brace,III PA-C www.21st-tees.com (osc) www.tanda-designs.com (osc)
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.
Note: Your post will require moderator approval before it will be visible.