Set rich text editor to be single space by default

Eben_Shapiro
Level 3

Set rich text editor to be single space by default

Using the rich text editor in editable emails, is there a way to have the line spacing always be 'single space'? Right now I'm wrapping the sample text in a div which helps to initialize the rich text editor with the right line spacing, but when I delete the content the editor immediately switches back to double space. Is there anyway to prevent this?

Thank you,

Eben

Tags (1)
2 REPLIES 2
Gerard_Donnell4
Level 10

Re: Set rich text editor to be single space by default

You need to have the styles applied to the main content wrapper of the email body and give it a css style of "!important". It should be in the template rather than visible in the rich text editor.

You can also add it to the <style> section at the top of the email template.

Gerard_Donnell4
Level 10

Re: Set rich text editor to be single space by default

EG,

If this is your editable area the wrapping tag should have the styles.

               <tr>

                  <td style="Add your styles here">

                    <div class="mktEditable" id="Main-Content">

                      <p>Lorem ipsum dolor amet meh church-key vegan intelligentsia tofu, jianbing quinoa migas shabby chic. Crucifix pitchfork narwhal banh mi, chicharrones butcher organic scenester lo-fi tumeric mumblecore helvetica sriracha cliche. Tbh schlitz poutine banh mi trust fund hashtag ramps ennui dreamcatcher locavore pinterest. </p>

                     

                    </div>

                  </td>

                </tr>