red devil Posted April 28, 2008 Posted April 28, 2008 Despite having the Tinymce WYSIWYG editor installed in Advanced mode in Admin for adding product descriptions and despite everything looking OK in the "preview" window, when the product description is displayed on the website it is unformatted as one continous string (with spaces in between words of course). The editor allows for colours and bold formatting and line spacing but this all disappears. What is causing this? Where should I be looking? I realise I can edit my listing in HTML but the WYSIWYG is more user friendly. Can anyone suggest a solution, please?
Guest Posted April 28, 2008 Posted April 28, 2008 Despite having the Tinymce WYSIWYG editor installed in Advanced mode in Admin for adding product descriptions and despite everything looking OK in the "preview" window, when the product description is displayed on the website it is unformatted as one continous string (with spaces in between words of course). The editor allows for colours and bold formatting and line spacing but this all disappears. What is causing this? Where should I be looking? I realise I can edit my listing in HTML but the WYSIWYG is more user friendly. Can anyone suggest a solution, please? Out of curiosity, which addon for product descriptions uses Tinymce?
red devil Posted April 28, 2008 Author Posted April 28, 2008 This is one such contribution. http://addons.oscommerce.com/info/3768 Not sure what I have installed as someone else designed the site.
Guest Posted April 28, 2008 Posted April 28, 2008 This is one such contribution. http://addons.oscommerce.com/info/3768 Not sure what I have installed as someone else designed the site. That makes it hard. You could download the contribution and see if the edits are there.
red devil Posted April 28, 2008 Author Posted April 28, 2008 If it helps to pin point the area that needs looking at, I've checked the database and all the HTML formatting is on there (colours, bold, fonts) so it loses it somehow when it reads the database and displays it on the webpage. Any clues?
red devil Posted April 28, 2008 Author Posted April 28, 2008 I have tracked the problem down to some altered code in product_info.php (nothing to do with Tinymce as that had done it's job) where is formats things to display on the webpage. Thanks for all your help. This is the correct code. The other code I had was stripping out formatting e.g. <br> <p> <p><?php echo stripslashes($product_info['products_description']); ?></p>
Guest Posted April 29, 2008 Posted April 29, 2008 I have tracked the problem down to some altered code in product_info.php (nothing to do with Tinymce as that had done it's job) where is formats things to display on the webpage. Thanks for all your help. This is the correct code. The other code I had was stripping out formatting e.g. <br> <p> <p><?php echo stripslashes($product_info['products_description']); ?></p> Glad you solved it and posted the solution.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.