Jump to:

23355 Posts in 17734 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Editor Text size vs Site Text size

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 836 Views
  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Editor Text size vs Site Text size Link to this post

    I have been looking around trying to find some help on adjusting the css file associated with the editor.
    I am using 2.3.3 and have not found a file.

    In general, most of my fonts are smaller - like half the size in the editor vs the site. Heading styles also - half size.

    Anyone point me in the right direction to fix this please.

    Steve

  • Benedikt
    Avatar
    Community Member
    16 Posts

    Re: Editor Text size vs Site Text size Link to this post

    I would say that you could change that in the body.mceContentBody class in the editor.css. Normally the CMS should take the editor.css located in the template folder but for me it takes the file located in the cms/css folder for some reason.

  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Re: Editor Text size vs Site Text size Link to this post

    I take a look. I do not have an editor.css file in the themes, only in the cms/css folder. The editor.css file in the cms/css folder only has a few classes, not sure what they do - I'll mess with it.

    Thank you
    Steve

  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Re: Editor Text size vs Site Text size Link to this post

    That did it! changed it to "font-size: 100%;" - I didn't change that before because I thought it would also change the paragraph text, but it left that alone.

    Thank you!
    Steve

  • Benedikt
    Avatar
    Community Member
    16 Posts

    Re: Editor Text size vs Site Text size Link to this post

    @Steve
    According to http://www.silverstripe.org/customising-the-cms/show/276090?start=0#post280958 there is a bug in the current silverstripe versions which prevents Silverstripe to load the editor.css out of the template/css folder. A fix for that bug is given there, you might want to follow this. (It's always unwise to change the core code since it will be overwritten once you upgrade Silverstripe)

  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Re: Editor Text size vs Site Text size Link to this post

    I will take a look, but at this point, my system is so far removed from a typical SS system, upgrades will just take time.

    Thank you

    836 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.