I am on Version 7.8.6
I cannot create custom email templates
The templates changes significantly from the hmtl code
example:
<td>
<p>
some text here
<br />
more text here
</p>
</td>
becomes:
<td style="font-family: &Segoe UI&, &News Gothic MT&, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin: 0px; background-color: rgb(255, 255, 255); color: rgb(45, 64, 80); padding: 3px 3px 3px 0px;" data-mce-style="font-family: 'Segoe UI', 'News Gothic MT', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin: 0; background-color: #fff; color: #2d4050;" valign="top">5.30pm to 8.30pm, <br style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: rgb(68, 68, 68); padding: 0px; margin: 0px;">Thursday 10 May 2018</td>
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: rgb(68, 68, 68); padding: 3px 3px 3px 0px; margin: 0px;">
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: rgb(68, 68, 68); padding: 0px; margin: 0px;">
some text here
<br style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: rgb(68, 68, 68); padding: 3px 3px 3px 0px; margin: 0px;">
more text here
</p>
</td>
even if i try:
<td style="font-family: 'Segoe UI', 'News Gothic MT', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; color: #444444; padding: 5px 0px; margin: 0px;">
the html will become
<td style="font-size: 15px; line-height: 24px; color: rgb(68, 68, 68); padding: 3px 3px 3px 0px; margin: 0px; font-family: Arial, Helvetica, sans-serif;"
data-mce-style="font-family: 'Segoe UI', 'News Gothic MT', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; color: #444444; padding: 5px 0px; margin: 0px;">
issues i have:
All my padding: get’s overwritten
My styles goes to data-mce-style
and
new style properties gets created
things with padding: 0px
becomes 3px 3px 3px 0px
all fonts get’s overwritten
What is going on???
Does anyone else have this problem?
I have tried
- Adding the html directly into the database - does not work - the email formatting happens when I send the campaign
- Disable some purifyhtml triggers: //$this->$key = SugarCleaner::cleanHtml($this->$key, true); in SugarBean.php
(#2 work until i send the email - I can now edit but sending again changes the html even in the HTML)
This makes email campaigns unusable