2 Replies Latest reply on Dec 4, 2017 9:19 AM by Gerard Donnelly

    Set rich text editor to be single space by default

    Eben Shapiro

      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

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

          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.

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

            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>