I have a problem with magento 1.7 (WYSIWYG). My problem is that I can't have a proper description of the product when I use the WYSIWYG. For example if I write in the WYSIWYG my product description, on site web site I will have a presentation which isn't the same. The WYSIWYG puts html tags for each line return.

Thank you for your help

有帮助吗?

解决方案

I've found in the past that with some themes the description is run through the nl2br function first. This will replace all new lines with <br> tags. Look in your view.phtml template file for this and remove the nl2br function.

其他提示

It could be that you have custom css on the front causing it to appair different, view source both the admin (WYSIWYG) and on the website to see if the html are the same. If they are the same then check your custom css

In the file description.phtml in the template/easytabs folder, I removed the nl2br. And then it works fine.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top