# WYSIWYG sauberes HTML

**URL:** <https://forum.shopware.com/t/wysiwyg-sauberes-html/107290>\
**Category:** Shopware 6 (English)\
**Created:** [27. Mai 2025 um 09:39 UTC](https://forum.shopware.com/t/wysiwyg-sauberes-html/107290 "2025-05-27T09:39:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ISA-Sallmann](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@ISA-Sallmann](https://forum.shopware.com/u/ISA-Sallmann)\
**Post date:** [27. Mai 2025 um 09:39 UTC](https://forum.shopware.com/t/wysiwyg-sauberes-html/107290/1 "2025-05-27T09:39:48Z")

</div>

Hello

Using the text editor in Shopware 6 is really frustrating. I pasted clean and simple HTML code into the editor. However, when I switch to editing mode and try to center the text, the editor adds unnecessary styles that create unwanted spacing between the lines.

For example:

```auto
<h2>title</h2>
<p>Name<br>
Street 57<br>
1234 city</p>
                
<p>E-Mail <br>
Phone</p>

```

After centering the text in the Editor:

```auto
<h2 style="text-align: center;">title</h2>
<p><p style="text-align: center;"><span style="letter-spacing: 0px; background-color: rgba(0, 0, 0, 0);">Name</span></p><p style="text-align: center;"><span style="letter-spacing: 0px; background-color: rgba(0, 0, 0, 0);">Street 57</span></p><p style="text-align: center;"><span style="letter-spacing: 0px; background-color: rgba(0, 0, 0, 0);">1234 city</span></p></p>
                
<p><p style="text-align: center;"><span style="letter-spacing: 0px; background-color: rgba(0, 0, 0, 0);">E-Mail</span></p><p style="text-align: center;"><span style="letter-spacing: 0px; background-color: rgba(0, 0, 0, 0);">Phone</span></p></p>

```

Where are the letter-spacing and background-color coming from? Why are there more `<p>` tags than before?

We are using Shopware 6.6.10.4. Does anyone have a solution for this behavior?

Kind Regards  
Miranda Senn

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [28. Mai 2025 um 15:58 UTC](https://forum.shopware.com/t/wysiwyg-sauberes-html/107290/2 "2025-05-28T15:58:47Z")

</div>

I guess this style comes from your source editor and not from Shopware. I have never seen this style.

Try to past it without styling.
