-
- Paradise

-
Total Posts: 33
Joined: 2007-09-21
Darmstadt
|
Hi,
i never use WYSIWYG editors and by default the one in Magento is turned off i think?
But if i but in my code in produkt-description:
<p>example</p>
<p><b>example:</b><br /> example</p>
<table width="400" border="0" cellspacing="0" cellpadding="0"> <caption class="produkt"><b>Angebotsform:</b></caption> <tr> <td class="pack1"><img src="/files/images/icons/icon.gif" alt="icon" width="43" height="41" /></td> <td class="pack2">example</td> </tr> </table>
<table width="400" border="0" cellspacing="0" cellpadding="0"> <caption class="produkt"><b>example:</b></caption> <tr class="inhalts"> <td class="inhalts1">example</td> <td class="inhalts2">example</td> </tr> </table>
i have a lot of breaks between everything. Like:
<p>example</p> <br /> <br /> <p><b>example:</b><br /> example</p> <br /> <br /> <br /> <table width="400" border="0" cellspacing="0" cellpadding="0"> <caption class="produkt"><b>Angebotsform:</b></caption> <tr> <td class="pack1"><img src="/files/images/icons/icon.gif" alt="icon" width="43" height="41" /></td> <td class="pack2">example</td> </tr> </table> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <table width="400" border="0" cellspacing="0" cellpadding="0"> <caption class="produkt"><b>example:</b></caption> <tr class="inhalts"> <td class="inhalts1">example</td> <td class="inhalts2">example</td> </tr> </table>
|
| |
-
- Posted: April 7 2008
-
| top
-
|
 |
 |
 |
|
|
|
|
-
- Paradise

-
Total Posts: 33
Joined: 2007-09-21
Darmstadt
|
I already read this. But its how to change or enable the editor. It don´t want a editor. But if the editor is off, where i get this breaks from?
|
| |
-
- Posted: April 7 2008
-
| top
| # 2
-
|
 |
 |
 |
|
|
-
- winzippy

-
Total Posts: 101
Joined: 2008-02-08
Rochester, NY, USA
|
Can you post a screen shot of what it looks like and what it should look like?
Also, you can try holding down [shift] when you hit enter if you’re typing your code directly into the textarea.
|
| |
-
- Posted: April 7 2008
-
| top
| # 3
-
|
 |
 |
 |
|
|
-
- Paradise

-
Total Posts: 33
Joined: 2007-09-21
Darmstadt
|
Screenshot shows nothing but a lot of space between the <p> tags or the <p> tags and tables.
In admin in the product description everything looks ok, but in frontend i have all this breaks in the source code on my side.
|
| |
-
- Posted: April 7 2008
-
| top
| # 4
-
|
 |
 |
 |
|
|
-
- winzippy

-
Total Posts: 101
Joined: 2008-02-08
Rochester, NY, USA
|
How are you inputing the HTML into the textarea? Copy and paste? Typing it in?
This is confounding me. Magento shouldn’t be doing that. It could be a bug. What version are you using?
|
| |
-
- Posted: April 7 2008
-
| top
| # 5
-
|
 |
 |
 |
|
|
-
- Paradise

-
Total Posts: 33
Joined: 2007-09-21
Darmstadt
|
Copy and paste from the windows editor.
But doesn´t matter how i but it in the description. Lets say no break in the description like:
</table><p>
instead of
</table>
<p>
the <br/> is always there in frontend…
|
| |
-
- Posted: April 7 2008
-
| top
| # 6
-
|
 |
 |
 |
|
|
-
- jsimpson

-
Total Posts: 3
Joined: 2008-04-15
|
The product description automatically converts newlines to <br/>. It’s rather annoying and trying to figure out how to turn this off right now.
|
| |
-
- Posted: April 22 2008
-
| top
| # 7
-
|
 |
 |
 |
|
|
-
- jsimpson

-
Total Posts: 3
Joined: 2008-04-15
|
app/design/frontend/default/default/template/catalog/product/view.phtml
<div class="product-specs"><?php echo nl2br($_product->getDescription()) ?></div>
to
<div class="product-specs"><?php echo $_product->getDescription() ?></div>
|
| |
-
- Posted: April 22 2008
-
| top
| # 8
-
|
 |
 |
 |
|
|
-
- traviswu

-
Total Posts: 31
Joined: 2008-05-29
|
Nice. this is exactly what I am looking for . Thank you jsimpson.
|
| |
-
- Posted: June 21 2008
-
| top
| # 9
-
|
 |
 |
 |
|
|
-
- choussamaster

-
Total Posts: 88
Joined: 2009-07-14
|
to delete automatic <br/> after <p> in magento 1.4
app\design\frontend\default\default\template\catalog\product\view
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), nl2br($_description), 'description') ?>
to
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), $_description, 'description') ?>
|
| |
-
- Posted: September 1 2010
-
| top
| # 10
-
|
 |
 |
 |
|
|