Jump to:

520 Posts in 248 Topics by 263 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » Override styles for the WYSIWYG-editor

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 2703 Views
  • Ultimate
    Avatar
    Community Member
    18 Posts

    Override styles for the WYSIWYG-editor Link to this post

    Right now I'm trying to override the settings I made in typography.css. I know those settings are imported to editor.css. But is there a possibility to change these typography-settings by style styling them a second time within editor.css? I tried this, but it didn't work.

    The problem is that I styled a heading to be displayed left to the text by

    .typography h3 {position: relative; left: -300px;}

    which means the heading won't be displayed in the WYSIWYG-editor. Of course I can put it to layout.css, but I want to keep all heading together.

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Override styles for the WYSIWYG-editor Link to this post

    Im a little confused.....why would putting it in Layout.css help?

    Anyway if you just want to have some different styling in the editor and not on the site then you have it right already putting them in editor.css, try adding !important to the end of the definition.

    .typography h3 {
    position: relative !important;
    left: -300px !important;
    }

    2703 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.