Try Now
More in this section

Forums / Developing with Sitefinity / Anyway to change line height of text typed into the editor?

Anyway to change line height of text typed into the editor?

3 posts, 0 answered
  1. Dave
    Dave avatar
    2 posts
    17 Apr 2008
    17 Apr 2008
    Link to this post
    Hi folks,

    The line-height in the editor is very tall and my client thinks it is adding a complete line in between sentences when he presses enter once.  The line-height is much bigger in the editor than in the resulting webpage as you can see in this jpg:


    Is there a way of adjusting the line-height in the editor, so what is typed looks closer to what is displayed on the page?

    Another thing to note is I have had to turn off all styling (margins, size, color etc) on my p tags, because the editor doesnt consistently use <p> tags.  This what is generated when I type a few sentences:
     hello my name is dave <p /><p>mjy name is alex</p><p />
    <p>I just pressed enter once.</p><p> </p>
    <p>I just pressed enter twice<br /></p>
    Therefore, I have added all styling on the containing div in my CSS, so I can avoid it looking different if there is no p tag around the first piece of text, then a p tag around the 2nd paragraph etc etc.
    For example, I cant just put margin on the p in the stylsheet because I dont know if the editor is going to use a p tag or not for that sentence!

    Anyway, I have managed despite that, but I need to reduce the editor line-height as the client thinks it is going down 2 lines instead of one because the line-height is very tall.  The client is confused by this so is moaning at me!

    Any help would be greatly appreciated, thanks in advance!
    Apart from that, I love the look and ease of use of this product.
  2. Katia
    Katia avatar
    194 posts
    01 Jul 2016
    18 Apr 2008
    Link to this post
    Hello Dave,

    All styles that are to be applied to editor content area should be wriiten in ~/Sitefinity/Admin/Themes/Default/Prometheus/Default2006/EditorCssFile.css.  So you can set line-height and other styles in that file and they will be applied to content in Deisgn mode.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Dave
    Dave avatar
    2 posts
    17 Apr 2008
    19 Apr 2008
    Link to this post
    Excellent thanks very much Katia
Register for webinar
3 posts, 0 answered