Skip to main content
Level 3
December 4, 2017
Question

Set rich text editor to be single space by default

  • December 4, 2017
  • 2 replies
  • 2370 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Gerard_Donnell4
Level 9
December 4, 2017

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 9
December 4, 2017

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>