Jump to:

23358 Posts in 17875 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » editor.css styles dont show up in htmleditorfield in IE

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: 795 Views
  • ChrisBryer
    Avatar
    Community Member
    95 Posts

    editor.css styles dont show up in htmleditorfield in IE Link to this post

    my editor.css file looks like this:

    /**
    * This support file is used to style the WYSIWYG editor in the CMS
    */

    @import "typography.css";

    body.mceContentBody {
       height: 200px;
       font-size: 62.5%;
       width: 709px;
       padding:0 25px;
       border:1px solid #CCC;
    }
    body.mceContentBody a.broken {
       background-color: #FF7B71;
       border: 1px red solid;
       color: #fff;
       padding: 1px;
       text-decoration: underline;
    }

    Firefox shows the styles correctly in the HtmlEditorField, with a border and a fixed width, however IE does not use any of the styles. IE does import typography.css, but width is not set, no border is created, etc... Does anyone have any suggestions as to how to make IE recognize these styles for the HTMLEditorField?

    I've seen people get frusterated when they try to place images in html text because the positioning is unpredictable because the field autostretches to the screen, and fixing the width gives them a much better idea of how the page is organized and where images will land in the template.

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